1 | <?php |
||
5 | class AdminPanelAction implements AdminPanelActionInterface |
||
6 | { |
||
7 | /** |
||
8 | * @var array |
||
9 | */ |
||
10 | private $url; |
||
11 | |||
12 | /** |
||
13 | * @var string |
||
14 | */ |
||
15 | private $icon; |
||
16 | |||
17 | /** |
||
18 | * @var string |
||
19 | */ |
||
20 | private $label; |
||
21 | |||
22 | /** |
||
23 | * @var string |
||
24 | */ |
||
25 | private $template = 'KunstmaanAdminBundle:AdminPanel:_admin_panel_action.html.twig'; |
||
26 | |||
27 | /** |
||
28 | * @param array $url The url path and parameters |
||
29 | * @param string $label The label |
||
30 | * @param string $icon The icon |
||
|
|||
31 | * @param string $template The template |
||
32 | */ |
||
33 | public function __construct( |
||
46 | |||
47 | /** |
||
48 | * @return array |
||
49 | */ |
||
50 | public function getUrl() |
||
54 | |||
55 | /** |
||
56 | * @return string |
||
57 | */ |
||
58 | public function getIcon() |
||
62 | |||
63 | /** |
||
64 | * @return string |
||
65 | */ |
||
66 | public function getLabel() |
||
70 | |||
71 | /** |
||
72 | * @return string |
||
73 | */ |
||
74 | public function getTemplate() |
||
78 | } |
||
79 |
This check looks for
@param
annotations where the type inferred by our type inference engine differs from the declared type.It makes a suggestion as to what type it considers more descriptive.
Most often this is a case of a parameter that can be null in addition to its declared types.