Conditions | 3 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 3 |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
37 | 5 | public function __construct($responses = null) |
|
38 | { |
||
39 | 5 | if (false === is_array($responses) && false === is_callable($responses)) { |
|
40 | 2 | throw new InvalidArgumentException('The response argument must be an array or a callable.'); |
|
41 | } |
||
42 | |||
43 | 3 | $this->responses = $responses; |
|
44 | 3 | $this->currentIndex = 0; |
|
45 | 3 | } |
|
84 |