Conditions | 4 |
Paths | 4 |
Total Lines | 21 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | public function __construct(array $loaAuthnContextClassMapping) |
||
19 | { |
||
20 | foreach ($loaAuthnContextClassMapping as $loaId => $authnContextClassRef) { |
||
21 | if (!is_string($loaId)) { |
||
22 | throw InvalidArgumentException::invalidType( |
||
23 | 'string', |
||
24 | 'authnContextClassRef', |
||
25 | $authnContextClassRef |
||
26 | ); |
||
27 | } |
||
28 | if (!is_string($authnContextClassRef)) { |
||
29 | throw InvalidArgumentException::invalidType( |
||
30 | 'string', |
||
31 | 'ref', |
||
32 | $authnContextClassRef |
||
33 | ); |
||
34 | } |
||
35 | } |
||
36 | |||
37 | $this->loaAuthnContextClassMapping = $loaAuthnContextClassMapping; |
||
38 | } |
||
39 | |||
70 |