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 | /** @var array Extended parameter */ |
||
18 | protected $getter_params_a = []; |
||
19 | |||
20 | /** |
||
21 | * @param \PhpAbac\Model\AbstractAttribute $attribute |
||
22 | * |
||
23 | * @return \PhpAbac\Model\PolicyRuleAttribute |
||
24 | */ |
||
25 | 11 | public function setAttribute(AbstractAttribute $attribute) |
|
31 | |||
32 | /** |
||
33 | * @return \PhpAbac\Model\AbstractAttribute |
||
34 | */ |
||
35 | 11 | public function getAttribute() |
|
39 | |||
40 | /** |
||
41 | * @param string $comparisonType |
||
42 | * |
||
43 | * @return \PhpAbac\Model\PolicyRuleAttribute |
||
44 | */ |
||
45 | 11 | public function setComparisonType($comparisonType) |
|
51 | |||
52 | /** |
||
53 | * @return string |
||
54 | */ |
||
55 | 11 | public function getComparisonType() |
|
59 | |||
60 | /** |
||
61 | * @param string $comparison |
||
62 | * |
||
63 | * @return \PhpAbac\Model\PolicyRuleAttribute |
||
64 | */ |
||
65 | 11 | public function setComparison($comparison) |
|
71 | |||
72 | /** |
||
73 | * @return string |
||
74 | */ |
||
75 | 10 | public function getComparison() |
|
79 | |||
80 | /** |
||
81 | * @param mixed $value |
||
82 | * |
||
83 | * @return \PhpAbac\Model\PolicyRuleAttribute |
||
84 | */ |
||
85 | 11 | public function setValue($value) |
|
91 | |||
92 | /** |
||
93 | * @return mixed |
||
94 | */ |
||
95 | 11 | public function getValue() |
|
99 | |||
100 | /** |
||
101 | * @param array $extraData |
||
102 | * @return \PhpAbac\Model\PolicyRuleAttribute |
||
103 | */ |
||
104 | 2 | public function setExtraData($extraData) { |
|
109 | |||
110 | /** |
||
111 | * @param string $key |
||
112 | * @param string $value |
||
113 | * @return \PhpAbac\Model\PolicyRuleAttribute |
||
114 | */ |
||
115 | 3 | public function addExtraData($key, $value) { |
|
120 | |||
121 | /** |
||
122 | * @param string $key |
||
123 | * @return \PhpAbac\Model\PolicyRuleAttribute |
||
124 | */ |
||
125 | 3 | public function removeExtraData($key) { |
|
131 | |||
132 | /** |
||
133 | * @return array |
||
134 | */ |
||
135 | 7 | public function getExtraData() { |
|
138 | |||
139 | /** |
||
140 | * @param array $value |
||
141 | * |
||
142 | * @return static |
||
143 | */ |
||
144 | 5 | public function setGetterParams($value) { |
|
149 | |||
150 | /** |
||
151 | * @return array |
||
152 | */ |
||
153 | 4 | public function getGetterParams() { |
|
156 | } |
||
157 |
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..