| 1 | <?php |
||
| 14 | final class GuideController |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @var array [ |
||
| 18 | * [ |
||
| 19 | * 'shortcode' => 'img' |
||
| 20 | * 'example' (optional key) => '[img src="https://upload.wikimedia.org/wikipedia/en/f/f7/RickRoll.png"]' |
||
| 21 | * 'description' (optional key) => 'Embeds the imgage located at {src}.' |
||
| 22 | * ] |
||
| 23 | * ] |
||
| 24 | */ |
||
| 25 | private $shortcodeTags; |
||
| 26 | |||
| 27 | public function __construct(array $shortcodeTags) |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @Template() |
||
| 34 | * @return array |
||
|
|
|||
| 35 | */ |
||
| 36 | public function listAction() |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @Template() |
||
| 45 | * @return array |
||
| 46 | */ |
||
| 47 | public function detailAction($shortcode) |
||
| 59 | } |
||
| 60 |
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.