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