1 | <?php |
||
11 | class SeoManagementMenuAdaptor implements MenuAdaptorInterface |
||
12 | { |
||
13 | /** |
||
14 | * @var AuthorizationCheckerInterface |
||
15 | */ |
||
16 | private $authorizationChecker; |
||
17 | |||
18 | /** |
||
19 | * @param AuthorizationCheckerInterface $authorizationChecker |
||
20 | */ |
||
21 | public function __construct(AuthorizationCheckerInterface $authorizationChecker) |
||
25 | |||
26 | /** |
||
27 | * In this method you can add children for a specific parent, but also remove and change the already created children |
||
28 | * |
||
29 | * @param MenuBuilder $menu The MenuBuilder |
||
30 | * @param MenuItem[] &$children The current children |
||
31 | * @param MenuItem $parent The parent Menu item |
||
|
|||
32 | * @param Request $request The Request |
||
33 | */ |
||
34 | public function adaptChildren(MenuBuilder $menu, array &$children, MenuItem $parent = null, Request $request = null) |
||
50 | } |
||
51 |
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.