id = $id; $this->name = $name; $this->parent = $parent; } /** * @return mixed */ public function getId() { return $this->id; } /** * @return mixed */ public function getName() { return $this->name; } /** * @return int */ public function getParent() { return $this->parent; } public function isRoot() { return false; } }