| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 64 | public function serialize() |
||
| 65 | { |
||
| 66 | $serialzedChildren = new \stdClass(); |
||
| 67 | foreach ($this->children as $child) { |
||
| 68 | $serialzedChildren->{$child->getName()} = $child->serialize()->{$child->getName()}; |
||
| 69 | } |
||
| 70 | |||
| 71 | $serialized = new \stdClass(); |
||
| 72 | $serialized->{$this->getName()} = $serialzedChildren; |
||
| 73 | |||
| 74 | return $serialized; |
||
| 75 | } |
||
| 76 | } |
||
| 77 |