| 1 | <?php |
||
| 9 | class Manager extends AbstractManager |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * The array of menus as defined in the config files. |
||
| 13 | * |
||
| 14 | * @var array |
||
| 15 | */ |
||
| 16 | protected $menus; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Get a `Menu` instance. |
||
| 20 | * |
||
| 21 | * @param string $name |
||
|
|
|||
| 22 | * |
||
| 23 | * @return Menu |
||
| 24 | */ |
||
| 25 | 4 | public function menu($name = null) |
|
| 30 | |||
| 31 | /** |
||
| 32 | * @inheritDoc |
||
| 33 | */ |
||
| 34 | 4 | public function getDefaultDriver() |
|
| 38 | |||
| 39 | /** |
||
| 40 | * @inheritDoc |
||
| 41 | */ |
||
| 42 | 4 | public function driver($name = null) |
|
| 46 | |||
| 47 | /** |
||
| 48 | * @inheritDoc |
||
| 49 | */ |
||
| 50 | 4 | protected function createDriver($name) |
|
| 63 | |||
| 64 | /** |
||
| 65 | * Get a menu's configuration. |
||
| 66 | * |
||
| 67 | * @param string $name |
||
| 68 | * |
||
| 69 | * @return array |
||
| 70 | */ |
||
| 71 | 4 | protected function getConfig($name) |
|
| 75 | |||
| 76 | /** |
||
| 77 | * Get a menu's items. |
||
| 78 | * |
||
| 79 | * @param string $name |
||
| 80 | * |
||
| 81 | * @return array |
||
| 82 | */ |
||
| 83 | 4 | protected function getMenuItems($name) |
|
| 87 | } |
||
| 88 |
This check looks for
@paramannotations 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.