| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | public function create(array $aliases): ClaimCheckerManager |
||
| 32 | { |
||
| 33 | $checkers = []; |
||
| 34 | foreach ($aliases as $alias) { |
||
| 35 | if (array_key_exists($alias, $this->checkers)) { |
||
| 36 | $checkers[] = $this->checkers[$alias]; |
||
| 37 | } else { |
||
| 38 | throw new \InvalidArgumentException(sprintf('The claim checker with the alias "%s" is not supported.', $alias)); |
||
| 39 | } |
||
| 40 | } |
||
| 41 | |||
| 42 | return ClaimCheckerManager::create($checkers); |
||
| 43 | } |
||
| 44 | |||
| 74 |