| 1 | <?php |
||
| 13 | abstract class AbstractArticleOverviewPage extends AbstractPage implements HasPagePartsInterface |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @return array |
||
| 17 | */ |
||
| 18 | public function getPossibleChildTypes() |
||
| 19 | { |
||
| 20 | return array(); |
||
| 21 | } |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @return AbstractPagePartAdminConfigurator[] |
||
|
|
|||
| 25 | */ |
||
| 26 | public function getPagePartAdminConfigurations() |
||
| 27 | { |
||
| 28 | return array(new AbstractArticleOverviewPagePagePartAdminConfigurator()); |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Return the Article repository |
||
| 33 | * |
||
| 34 | * @param $em |
||
| 35 | * |
||
| 36 | * @return mixed |
||
| 37 | */ |
||
| 38 | abstract public function getArticleRepository($em); |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @return string |
||
| 42 | */ |
||
| 43 | public function getDefaultView() |
||
| 47 | } |
||
| 48 |
This check looks for the generic type
arrayas a return type and suggests a more specific type. This type is inferred from the actual code.