| Conditions | 1 |
| Paths | 1 |
| Total Lines | 7 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | 2 | public function __construct($candidate = null) |
|
| 21 | { |
||
| 22 | 2 | $candidate = $candidate ?? []; |
|
| 23 | //ArrayIterator options --> Array indices can be accessed as properties in read/write. |
||
| 24 | 2 | parent::__construct( |
|
| 25 | /** @scrutinizer ignore-type */ |
||
| 26 | 2 | $candidate, \ArrayIterator::STD_PROP_LIST | \ArrayIterator::ARRAY_AS_PROPS); |
|
| 27 | } |
||
| 40 |