items = []; foreach ($items as $item) { $this->add($item); } } /** * Add an item * * @param \Cake\Error\Debug\ArrayItemNode $node The item to add. * @return void */ public function add(ArrayItemNode $node): void { $this->items[] = $node; } /** * Get the contained items * * @return \Cake\Error\Debug\ArrayItemNode[] */ public function getValue(): array { return $this->items; } /** * Get Item nodes * * @return \Cake\Error\Debug\ArrayItemNode[] */ public function getChildren(): array { return $this->items; } }