/** * @return \Tracker */ public function build() { $tracker = new Tracker($this->id, $this->project_id, $this->name, null, $this->item_name, null, null, null, null, null, null, null); if ($this->project) { $tracker->setProject($this->project); } return $tracker; }
/** * @return \Tracker */ public function build() { $tracker = new Tracker($this->id, $this->project_id, $this->name, null, $this->item_name, null, null, null, null, null, null, null, null, null); if ($this->project) { $tracker->setProject($this->project); } if ($this->children !== null) { $tracker->setChildren($this->children); } if ($this->parent !== false) { $tracker->setParent($this->parent); } return $tracker; }