Exemplo n.º 1
0
 public function getData()
 {
     return ['id' => $this->id, 'activityDate' => $this->activityDate, 'project' => $this->project->getId(), 'task' => $this->task ? $this->task->getData()['id'] : null, 'type' => $this->type, 'sender' => $this->sender ? $this->sender->getData() : null, 'message' => $this->message];
 }
Exemplo n.º 2
0
 public function getData()
 {
     return ['id' => $this->id, 'name' => $this->name, 'path' => $this->path, 'size' => $this->size, 'project' => $this->project ? $this->project->getData() : null, 'task' => $this->task ? $this->task->getData() : null, 'language' => $this->language ? $this->language->getData() : null, 'token' => $this->token, 'time' => $this->time, 'filetype' => $this->filetype];
 }