| Conditions | 3 |
| Paths | 3 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 3 |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | 67 | public function __construct($input) |
|
| 8 | { |
||
| 9 | 67 | if (is_object($input)) { |
|
| 10 | 36 | if ($input instanceof \Traversable) { |
|
| 11 | 3 | $input = iterator_to_array($input); |
|
| 12 | } else { |
||
| 13 | 34 | $input = get_object_vars($input); |
|
| 14 | } |
||
| 15 | } |
||
| 16 | 67 | parent::__construct($input, static::ARRAY_AS_PROPS); |
|
| 17 | 67 | } |
|
| 18 | |||
| 46 |