1 | <?php |
||
5 | class PolicyRuleAttribute |
||
6 | { |
||
7 | /** @var PhpAbac\Model\AbstractAttribute **/ |
||
8 | protected $attribute; |
||
9 | /** @var string **/ |
||
10 | protected $comparisonType; |
||
11 | /** @var string **/ |
||
12 | protected $comparison; |
||
13 | /** @var mixed **/ |
||
14 | protected $value; |
||
15 | /** @var array **/ |
||
16 | protected $extraData; |
||
17 | |||
18 | /** |
||
19 | * @param \PhpAbac\Model\AbstractAttribute $attribute |
||
20 | * |
||
21 | * @return \PhpAbac\Model\PolicyRuleAttribute |
||
22 | */ |
||
23 | 8 | public function setAttribute(AbstractAttribute $attribute) |
|
29 | |||
30 | /** |
||
31 | * @return \PhpAbac\Model\AbstractAttribute |
||
32 | */ |
||
33 | 8 | public function getAttribute() |
|
37 | |||
38 | /** |
||
39 | * @param string $comparisonType |
||
40 | * |
||
41 | * @return \PhpAbac\Model\PolicyRuleAttribute |
||
42 | */ |
||
43 | 8 | public function setComparisonType($comparisonType) |
|
49 | |||
50 | /** |
||
51 | * @return string |
||
52 | */ |
||
53 | 8 | public function getComparisonType() |
|
57 | |||
58 | /** |
||
59 | * @param string $comparison |
||
60 | * |
||
61 | * @return \PhpAbac\Model\PolicyRuleAttribute |
||
62 | */ |
||
63 | 8 | public function setComparison($comparison) |
|
69 | |||
70 | /** |
||
71 | * @return string |
||
72 | */ |
||
73 | 7 | public function getComparison() |
|
77 | |||
78 | /** |
||
79 | * @param mixed $value |
||
80 | * |
||
81 | * @return \PhpAbac\Model\PolicyRuleAttribute |
||
82 | */ |
||
83 | 8 | public function setValue($value) |
|
89 | |||
90 | /** |
||
91 | * @return mixed |
||
92 | */ |
||
93 | 8 | public function getValue() |
|
97 | |||
98 | /** |
||
99 | * @param array $extraData |
||
100 | * @return \PhpAbac\Model\PolicyRuleAttribute |
||
101 | */ |
||
102 | 2 | public function setExtraData($extraData) { |
|
107 | |||
108 | /** |
||
109 | * @param string $key |
||
110 | * @param string $value |
||
111 | * @return \PhpAbac\Model\PolicyRuleAttribute |
||
112 | */ |
||
113 | 1 | public function addExtraData($key, $value) { |
|
118 | |||
119 | /** |
||
120 | * @param string $key |
||
121 | * @return \PhpAbac\Model\PolicyRuleAttribute |
||
122 | */ |
||
123 | 1 | public function removeExtraData($key) { |
|
129 | |||
130 | /** |
||
131 | * @return array |
||
132 | */ |
||
133 | 4 | public function getExtraData() { |
|
136 | } |
||
137 |
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..