| Conditions | 3 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 3 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | 2 | public function __construct(stdClass $data) |
|
| 22 | { |
||
| 23 | 2 | $container = 'get_related_signatureResult'; |
|
| 24 | 2 | parent::__construct($data, $container); |
|
| 25 | 2 | $parents = $this->findInDescendent($data, $container, 'Padres', 'Padre'); |
|
| 26 | 2 | $this->parents = new RelatedItems(is_array($parents) ? $parents : []); |
|
| 27 | 2 | $children = $this->findInDescendent($data, $container, 'Hijos', 'Hijo'); |
|
| 28 | 2 | $this->children = new RelatedItems(is_array($children) ? $children : []); |
|
| 29 | 2 | $this->error = $this->get('error'); |
|
| 30 | 2 | } |
|
| 47 |