| Conditions | 3 |
| Paths | 3 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 3 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | public function __construct() |
||
| 21 | 2 | { |
|
| 22 | 2 | $this->type = Type::OBJECT; |
|
| 23 | 2 | $properties = new Properties(); |
|
| 24 | $this->properties = $properties; |
||
| 25 | 2 | ||
| 26 | 2 | foreach (func_get_args() as $arg) { |
|
| 27 | 2 | if ($arg instanceof Wrapper) { |
|
| 28 | $properties->__set($arg->objectItemClass, $arg->nested()); |
||
| 29 | } |
||
| 33 | } |