1 | <?php |
||
16 | class AdaptFormEvent extends BcEvent |
||
17 | { |
||
18 | /** |
||
19 | * @var TabPane |
||
20 | */ |
||
21 | private $tabPane; |
||
22 | |||
23 | /** |
||
24 | * @var |
||
25 | */ |
||
26 | private $page; |
||
27 | |||
28 | /** |
||
29 | * @var Node |
||
30 | */ |
||
31 | private $node; |
||
32 | |||
33 | /** |
||
34 | * @var NodeTranslation |
||
35 | */ |
||
36 | private $nodeTranslation; |
||
37 | |||
38 | /** |
||
39 | * @var NodeVersion |
||
40 | */ |
||
41 | private $nodeVersion; |
||
42 | |||
43 | /** |
||
44 | * @var Request |
||
45 | */ |
||
46 | private $request; |
||
47 | |||
48 | /** |
||
49 | * @param Request $request |
||
50 | * @param TabPane $tabPane The tab pane |
||
51 | * @param HasNodeInterface $page The page |
||
|
|||
52 | * @param Node $node The node |
||
53 | * @param NodeTranslation $nodeTranslation The node translation |
||
54 | * @param NodeVersion $nodeVersion The node version |
||
55 | */ |
||
56 | 2 | public function __construct(Request $request, TabPane $tabPane, $page = null, Node $node = null, NodeTranslation $nodeTranslation = null, NodeVersion $nodeVersion = null) |
|
65 | |||
66 | /** |
||
67 | * @return Node |
||
68 | */ |
||
69 | 1 | public function getNode() |
|
73 | |||
74 | /** |
||
75 | * @return NodeTranslation |
||
76 | */ |
||
77 | 1 | public function getNodeTranslation() |
|
81 | |||
82 | /** |
||
83 | * @return NodeVersion |
||
84 | */ |
||
85 | 1 | public function getNodeVersion() |
|
89 | |||
90 | /** |
||
91 | * @return |
||
92 | */ |
||
93 | 2 | public function getPage() |
|
97 | |||
98 | /** |
||
99 | * @return TabPane |
||
100 | */ |
||
101 | 2 | public function getTabPane() |
|
105 | |||
106 | 1 | public function getRequest() |
|
110 | } |
||
111 |
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.