1 | <?php |
||
19 | class Annotation |
||
20 | { |
||
21 | |||
22 | /** |
||
23 | * The annotation token. |
||
24 | * |
||
25 | * @var string |
||
26 | */ |
||
27 | |||
28 | protected $name; |
||
29 | |||
30 | /** |
||
31 | * Formmated arguments, but not casted. |
||
32 | * |
||
33 | * @var array |
||
34 | */ |
||
35 | |||
36 | protected $arguments; |
||
37 | |||
38 | /** |
||
39 | * @param string $name |
||
40 | * @param string $arguments |
||
41 | */ |
||
42 | |||
43 | public function __construct($name, $arguments) |
||
53 | |||
54 | /** |
||
55 | * @return string |
||
56 | */ |
||
57 | |||
58 | public function getName() |
||
62 | |||
63 | /** |
||
64 | * @return array |
||
65 | */ |
||
66 | |||
67 | public function getArguments() |
||
71 | |||
72 | /** |
||
73 | * @return string |
||
74 | */ |
||
75 | |||
76 | public function getArgument($name) |
||
80 | |||
81 | /** |
||
82 | * @return string |
||
83 | */ |
||
84 | |||
85 | public function getArgumentCount() |
||
89 | |||
90 | /** |
||
91 | * @return boolean |
||
92 | */ |
||
93 | |||
94 | public function hasArgument($name) |
||
98 | |||
99 | /** |
||
100 | * Overwrite this method to parse and validate the arguments in a |
||
101 | * new Annotation definition. |
||
102 | * |
||
103 | * @return void |
||
104 | */ |
||
105 | |||
106 | protected function filter() |
||
110 | |||
111 | public function __toString() |
||
119 | |||
120 | } |
||
121 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..