1 | <?php |
||
15 | class SeriesPosts extends PostListAbstract |
||
16 | { |
||
17 | // Param name to be used in URLs: ":series" |
||
18 | const URL_PARAM_NAME = 'series'; |
||
19 | |||
20 | const NAME = 'postsInSeries'; |
||
21 | |||
22 | /** |
||
23 | * @var Series |
||
24 | */ |
||
25 | public $series; |
||
26 | |||
27 | /** |
||
28 | * @return array |
||
29 | */ |
||
30 | public function componentDetails(): array |
||
37 | |||
38 | /** |
||
39 | * @return array |
||
40 | */ |
||
41 | public function defineProperties(): array |
||
52 | |||
53 | /** |
||
54 | * @inheritDoc |
||
55 | */ |
||
56 | protected function prepareContextItem() |
||
63 | |||
64 | /** |
||
65 | * @return mixed |
||
66 | */ |
||
67 | protected function getPostsQuery() |
||
75 | |||
76 | protected function setPostUrl(Post $post) |
||
86 | } |
||
87 |
Our type inference engine in quite powerful, but sometimes the code does not provide enough clues to go by. In these cases we request you to add a
@return
annotation as described here.