/** * Get children of current menu item * * @return MenuItem[] */ public function getChildren() { if (is_null($this->children)) { $this->children = $this->menu->getChildren($this); } return $this->children; }