1 | <?php |
||
27 | class Loa |
||
28 | { |
||
29 | /** |
||
30 | * The different levels |
||
31 | */ |
||
32 | const LOA_1 = 1; |
||
33 | const LOA_2 = 2; |
||
34 | const LOA_3 = 3; |
||
35 | |||
36 | /** |
||
37 | * @var int |
||
38 | */ |
||
39 | private $level; |
||
40 | |||
41 | /** |
||
42 | * @var string |
||
43 | */ |
||
44 | private $authnContextClasses; |
||
45 | |||
46 | public static function getLevels() |
||
50 | |||
51 | /** |
||
52 | * Loa constructor. |
||
53 | * @param $level |
||
54 | * @param AuthnContextClass[] $authnContextClasses |
||
55 | */ |
||
56 | public function __construct($level, array $authnContextClasses) |
||
80 | |||
81 | /** |
||
82 | * @param string $identifier |
||
83 | * @return bool |
||
84 | */ |
||
85 | public function isIdentifiedBy($authnContextClassRef) |
||
94 | |||
95 | /** |
||
96 | * @param string $type |
||
97 | * @return AuthnContextClass |
||
98 | */ |
||
99 | public function fetchAuthnContextClassOfType($type) |
||
111 | |||
112 | /** |
||
113 | * @param int $level |
||
114 | * @return bool |
||
115 | */ |
||
116 | public function levelIsLowerOrEqualTo($level) |
||
120 | |||
121 | /** |
||
122 | * @param int $level |
||
123 | * @return bool |
||
124 | */ |
||
125 | public function levelIsHigherOrEqualTo($level) |
||
129 | |||
130 | /** |
||
131 | * @param Loa $loa |
||
132 | * @return bool |
||
133 | */ |
||
134 | public function canSatisfyLoa(Loa $loa) |
||
138 | |||
139 | /** |
||
140 | * @param Loa $loa |
||
141 | * @return bool |
||
142 | */ |
||
143 | public function equals(Loa $loa) |
||
157 | |||
158 | /** |
||
159 | * @param int $loaLevel |
||
160 | * @return bool |
||
161 | */ |
||
162 | public function isOfLevel($loaLevel) |
||
166 | |||
167 | public function __toString() |
||
171 | } |
||
172 |
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..