| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 2 |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 22 | 135 | public function __construct(callable $test, $type, array $source = null) |
|
| 23 | { |
||
| 24 | 135 | $this->test = $test; |
|
| 25 | 135 | $this->type = $type; |
|
| 26 | |||
| 27 | 135 | if (null !== $source) { |
|
| 28 | 66 | $this->verify($source); |
|
| 29 | |||
| 30 | 33 | parent::__construct($source); |
|
| 31 | 33 | } else { |
|
| 32 | 102 | parent::__construct(); |
|
| 33 | } |
||
| 34 | 102 | } |
|
| 35 | |||
| 57 |