• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

eliashaeussler / typo3-warming / 15509771334

07 Jun 2025 04:43PM UTC coverage: 86.535% (-4.1%) from 90.617%
15509771334

Pull #871

github

eliashaeussler
[FEATURE] Collect url metadata during cache warmup
Pull Request #871: [FEATURE] Collect url metadata during cache warmup

104 of 188 new or added lines in 9 files covered. (55.32%)

1 existing line in 1 file now uncovered.

1446 of 1671 relevant lines covered (86.54%)

9.25 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

25.0
/Classes/Http/Message/UrlMetadata.php
1
<?php
2

3
declare(strict_types=1);
4

5
/*
6
 * This file is part of the TYPO3 CMS extension "warming".
7
 *
8
 * Copyright (C) 2021-2025 Elias Häußler <elias@haeussler.dev>
9
 *
10
 * This program is free software: you can redistribute it and/or modify
11
 * it under the terms of the GNU General Public License as published by
12
 * the Free Software Foundation, either version 2 of the License, or
13
 * (at your option) any later version.
14
 *
15
 * This program is distributed in the hope that it will be useful,
16
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
 * GNU General Public License for more details.
19
 *
20
 * You should have received a copy of the GNU General Public License
21
 * along with this program. If not, see <https://www.gnu.org/licenses/>.
22
 */
23

24
namespace EliasHaeussler\Typo3Warming\Http\Message;
25

26
use Symfony\Component\DependencyInjection;
27

28
/**
29
 * UrlMetadata
30
 *
31
 * @author Elias Häußler <elias@haeussler.dev>
32
 * @license GPL-2.0-or-later
33
 */
34
#[DependencyInjection\Attribute\Exclude]
35
final class UrlMetadata implements \JsonSerializable
36
{
37
    public function __construct(
4✔
38
        public ?int $pageId = null,
39
        public ?string $pageType = null,
40
        public ?int $languageId = null,
41
    ) {}
4✔
42

43
    /**
44
     * @return array{
45
     *     pageId: int|null,
46
     *     pageType: string|null,
47
     *     languageId: int|null
48
     * }
49
     */
NEW
50
    public function jsonSerialize(): array
×
51
    {
NEW
52
        return [
×
NEW
53
            'pageId' => $this->pageId,
×
NEW
54
            'pageType' => $this->pageType,
×
NEW
55
            'languageId' => $this->languageId,
×
NEW
56
        ];
×
57
    }
58
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc