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

Yoast / Yoast-SEO-for-TYPO3 / 13327579701

14 Feb 2025 10:43AM UTC coverage: 1.276%. First build
13327579701

push

github

web-flow
Merge pull request #597 from Yoast/feature/v11

[FEATURE] Release 11.0.0

21 of 894 new or added lines in 76 files covered. (2.35%)

35 of 2744 relevant lines covered (1.28%)

0.04 hits per line

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

0.0
/Classes/Service/Overview/Dto/OverviewData.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace YoastSeoForTypo3\YoastSeo\Service\Overview\Dto;
6

7
use TYPO3\CMS\Core\Pagination\ArrayPaginator;
8
use YoastSeoForTypo3\YoastSeo\DataProviders\OverviewDataProviderInterface;
9
use YoastSeoForTypo3\YoastSeo\Service\Overview\Pagination\Pagination;
10

11
class OverviewData
12
{
13
    public function __construct(
14
        /** @var array<string, string|int> */
15
        protected array $pageInformation = [],
16
        /** @var array<int, array<string, mixed>> */
17
        protected array $items = [],
18
        protected ArrayPaginator|null $paginator = null,
19
        protected Pagination|null $pagination = null,
20
        /** @var array<string, OverviewDataProviderInterface> */
21
        protected array $filters = [],
22
        protected OverviewDataProviderInterface|null $activeFilter = null,
23
        protected DataProviderRequest|null $params = null,
NEW
24
    ) {}
×
25

26
    /**
27
     * @return array<string, string|int>
28
     */
29
    public function getPageInformation(): array
30
    {
NEW
31
        return $this->pageInformation;
×
32
    }
33

34
    /**
35
     * @param array<string, string|int> $pageInformation
36
     */
37
    public function setPageInformation(array $pageInformation): OverviewData
38
    {
NEW
39
        $this->pageInformation = $pageInformation;
×
NEW
40
        return $this;
×
41
    }
42

43
    /**
44
     * @return array<int, array<string, mixed>>
45
     */
46
    public function getItems(): array
47
    {
NEW
48
        return $this->items;
×
49
    }
50

51
    /**
52
     * @param array<int, array<string, mixed>> $items
53
     */
54
    public function setItems(array $items): OverviewData
55
    {
NEW
56
        $this->items = $items;
×
NEW
57
        return $this;
×
58
    }
59

60
    public function getPaginator(): ?ArrayPaginator
61
    {
NEW
62
        return $this->paginator;
×
63
    }
64

65
    public function setPaginator(?ArrayPaginator $paginator): OverviewData
66
    {
NEW
67
        $this->paginator = $paginator;
×
NEW
68
        return $this;
×
69
    }
70

71
    public function getPagination(): ?Pagination
72
    {
NEW
73
        return $this->pagination;
×
74
    }
75

76
    public function setPagination(?Pagination $pagination): OverviewData
77
    {
NEW
78
        $this->pagination = $pagination;
×
NEW
79
        return $this;
×
80
    }
81

82
    /**
83
     * @return array<string, OverviewDataProviderInterface>
84
     */
85
    public function getFilters(): array
86
    {
NEW
87
        return $this->filters;
×
88
    }
89

90
    /**
91
     * @param array<string, OverviewDataProviderInterface>|null $filters
92
     */
93
    public function setFilters(array|null $filters): OverviewData
94
    {
NEW
95
        $this->filters = $filters ?? [];
×
NEW
96
        return $this;
×
97
    }
98

99
    public function getActiveFilter(): ?OverviewDataProviderInterface
100
    {
NEW
101
        return $this->activeFilter;
×
102
    }
103

104
    public function setActiveFilter(?OverviewDataProviderInterface $activeFilter): OverviewData
105
    {
NEW
106
        $this->activeFilter = $activeFilter;
×
NEW
107
        return $this;
×
108
    }
109

110
    public function getParams(): ?DataProviderRequest
111
    {
NEW
112
        return $this->params;
×
113
    }
114

115
    public function setParams(?DataProviderRequest $params): OverviewData
116
    {
NEW
117
        $this->params = $params;
×
NEW
118
        return $this;
×
119
    }
120

121
    /**
122
     * @return array<string, mixed>
123
     */
124
    public function toArray(): array
125
    {
NEW
126
        return [
×
NEW
127
            'pageInformation' => $this->pageInformation,
×
NEW
128
            'items' => $this->items,
×
NEW
129
            'paginator' => $this->paginator,
×
NEW
130
            'pagination' => $this->pagination,
×
NEW
131
            'filters' => $this->filters,
×
NEW
132
            'activeFilter' => $this->activeFilter,
×
NEW
133
            'params' => $this->params,
×
NEW
134
        ];
×
135
    }
136
}
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

© 2026 Coveralls, Inc