| Total Complexity | 4 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | final class ProxyNode extends AbstractNode |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @var array<non-empty-string, AbstractNode> Indexed pitched nodes |
||
|
|
|||
| 18 | */ |
||
| 19 | private array $includeNodes = []; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @param list<non-empty-string> $innerKeys |
||
| 23 | */ |
||
| 24 | public function __construct(array $innerKeys) |
||
| 25 | { |
||
| 26 | parent::__construct([], $innerKeys); |
||
| 27 | } |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Add pitched node to proxy. |
||
| 31 | * |
||
| 32 | * @param non-empty-string $target |
||
| 33 | */ |
||
| 34 | public function addNode(string $target, AbstractNode $node): AbstractNode |
||
| 42 | } |
||
| 43 | |||
| 44 | protected function push(array &$data): void |
||
| 46 | // BelongsToMorphedNode doesn't store data itself |
||
| 47 | // Data is pushed to child nodes by role |
||
| 50 |