| Conditions | 3 |
| Paths | 3 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 23 | public function __construct(array $authenticationChain = []) |
||
| 24 | { |
||
| 25 | foreach ($authenticationChain as $authentication) { |
||
| 26 | if (!$authentication instanceof Authentication) { |
||
| 27 | throw new \InvalidArgumentException( |
||
| 28 | 'Members of the authentication chain must be of type Http\Message\Authentication' |
||
| 29 | ); |
||
| 30 | } |
||
| 31 | } |
||
| 32 | |||
| 33 | $this->authenticationChain = $authenticationChain; |
||
| 34 | } |
||
| 35 | |||
| 48 |