1 | <?php |
||
17 | class SeriesList extends ComponentAbstract |
||
18 | { |
||
19 | const NAME = 'seriesList'; |
||
20 | |||
21 | use TranslateArrayTrait; |
||
22 | use PostListExceptionsTrait; |
||
23 | |||
24 | /** |
||
25 | * @var Series |
||
26 | */ |
||
27 | public $series; |
||
28 | |||
29 | /** |
||
30 | * Reference to the page name for linking to series |
||
31 | * |
||
32 | * @var string |
||
33 | */ |
||
34 | protected $seriesPage; |
||
35 | |||
36 | /** |
||
37 | * If the series list should be ordered by another attribute |
||
38 | * |
||
39 | * @var string |
||
40 | */ |
||
41 | public $orderBy; |
||
42 | |||
43 | /** |
||
44 | * Whether display or not empty series |
||
45 | * |
||
46 | * @var bool |
||
47 | */ |
||
48 | public $displayEmpty; |
||
49 | |||
50 | /** |
||
51 | * Limits the number of records to display |
||
52 | * |
||
53 | * @var int |
||
54 | */ |
||
55 | public $limit; |
||
56 | |||
57 | /** |
||
58 | * Whether to query related posts or not |
||
59 | * |
||
60 | * @var bool |
||
61 | */ |
||
62 | private $fetchPosts; |
||
63 | |||
64 | /** |
||
65 | * @return array |
||
|
|||
66 | */ |
||
67 | public function componentDetails() |
||
74 | |||
75 | /** |
||
76 | * @return array |
||
77 | */ |
||
78 | public function defineProperties(): array |
||
121 | |||
122 | /** |
||
123 | * @return mixed |
||
124 | */ |
||
125 | public function getSeriesPageOptions() |
||
129 | |||
130 | /** |
||
131 | * @return string[] |
||
132 | */ |
||
133 | public function getOrderByOptions(): array |
||
141 | |||
142 | /** |
||
143 | * Prepare and return a series list |
||
144 | * |
||
145 | * @return mixed |
||
146 | */ |
||
147 | public function onRun() |
||
156 | |||
157 | /** |
||
158 | * Get Series |
||
159 | * |
||
160 | * @return mixed |
||
161 | */ |
||
162 | protected function listSeries() |
||
177 | |||
178 | /** |
||
179 | * @param $series |
||
180 | */ |
||
181 | protected function handleUrls($series) |
||
194 | |||
195 | private function prepareVars(): void |
||
203 | } |
||
204 |
This check looks for the generic type
array
as a return type and suggests a more specific type. This type is inferred from the actual code.