55 public function __construct($id, $name, $description, $parent)
57 $this->
id = intval($id);
59 $this->description = $description;
60 if ($parent !== null) {
61 $this->parent = intval($parent);
63 $this->parent = $parent;
90 return $this->description;
106 return json_encode($this->
getArray());
116 $this->
id = intval($id);
132 $this->description = $description;
140 if ($parent !== null) {
141 $this->parent = intval($parent);
143 $this->parent = $parent;
155 'id' => intval($this->
id),
156 'name' => $this->name,
157 'description' => $this->description,
158 'parent' => $this->parent
__construct($id, $name, $description, $parent)
setDescription($description)