1 | <?php |
||
15 | class SeriesList extends ComponentBase |
||
16 | { |
||
17 | /** |
||
18 | * @var Series |
||
19 | */ |
||
20 | public $series; |
||
21 | |||
22 | /** |
||
23 | * Reference to the page name for linking to series |
||
24 | * |
||
25 | * @var string |
||
26 | */ |
||
27 | public $seriesPage; |
||
28 | |||
29 | /** |
||
30 | * If the series list should be ordered by another attribute |
||
31 | * |
||
32 | * @var string |
||
33 | */ |
||
34 | public $sortOrder; |
||
35 | |||
36 | /** |
||
37 | * Whether display or not empty series |
||
38 | * |
||
39 | * @var bool |
||
40 | */ |
||
41 | public $displayEmpty; |
||
42 | |||
43 | /** |
||
44 | * @return array |
||
|
|||
45 | */ |
||
46 | public function componentDetails() |
||
53 | |||
54 | /** |
||
55 | * @return array |
||
56 | */ |
||
57 | public function defineProperties() |
||
80 | |||
81 | /** |
||
82 | * @return mixed |
||
83 | */ |
||
84 | public function getSeriesPageOptions() |
||
88 | |||
89 | /** |
||
90 | * @see BlogPost::$allowedSortingOptions |
||
91 | * |
||
92 | * @return mixed |
||
93 | */ |
||
94 | public function getSortOrderOptions() |
||
98 | |||
99 | /** |
||
100 | * Prepare and return a series list |
||
101 | * |
||
102 | * @return mixed |
||
103 | */ |
||
104 | public function onRun() |
||
113 | |||
114 | /** |
||
115 | * Get Series |
||
116 | * |
||
117 | * @return mixed |
||
118 | */ |
||
119 | protected function listSeries() |
||
136 | } |
||
137 |
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.