12 namespace Fossology\UI\Api\Models;
44 public function __construct($id, $name, $description, $parent)
46 $this->
id = intval($id);
48 $this->description = $description;
49 if ($parent !==
null) {
50 $this->parent = intval($parent);
52 $this->parent = $parent;
79 return $this->description;
95 return json_encode($this->
getArray());
105 $this->
id = intval($id);
121 $this->description = $description;
129 if ($parent !==
null) {
130 $this->parent = intval($parent);
132 $this->parent = $parent;
144 'id' => intval($this->
id),
145 'name' => $this->name,
146 'description' => $this->description,
147 'parent' => $this->parent
__construct($id, $name, $description, $parent)
setDescription($description)