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