| 1 | <?php  | 
            ||
| 11 | class RootNode extends AbstractNode  | 
            ||
| 12 | { | 
            ||
| 13 | use DuplicateTrait;  | 
            ||
| 14 | |||
| 15 | /**  | 
            ||
| 16 | * Array used to aggregate all nested node results in a form of tree.  | 
            ||
| 17 | *  | 
            ||
| 18 | * @var array  | 
            ||
| 19 | */  | 
            ||
| 20 | private $result = [];  | 
            ||
| 21 | |||
| 22 | /**  | 
            ||
| 23 | * @param array $columns  | 
            ||
| 24 | * @param array $primaryKeys  | 
            ||
| 25 | */  | 
            ||
| 26 | public function __construct(array $columns = [], array $primaryKeys = [])  | 
            ||
| 31 | |||
| 32 | /**  | 
            ||
| 33 | * Get resulted tree.  | 
            ||
| 34 | *  | 
            ||
| 35 | * @return array  | 
            ||
| 36 | */  | 
            ||
| 37 | public function getResult(): array  | 
            ||
| 41 | |||
| 42 | /**  | 
            ||
| 43 |      * {@inheritdoc} | 
            ||
| 44 | */  | 
            ||
| 45 | protected function registerData(array &$data)  | 
            ||
| 49 | }  |