id; } public function setType($type) { $this->type = $type; return $this; } public function getType() { return $this->type; } /** * @param array $data * * @return WorkerJob */ public function setData(array $data) { $this->data = $data; return $this; } public function getData() { return $this->data; } public function setStatus($status) { $this->status = $status; return $this; } public function getStatus() { return $this->status; } /** * @return \DateTime */ public function getCreated() { return $this->created; } /** * @param \DateTime $finished * @return $this */ public function setFinished(\DateTime $finished) { $this->finished = $finished; return $this; } /** * @return mixed */ public function getFinished() { return $this->finished; } /** * @param \DateTime $started * @return $this */ public function setStarted(\DateTime $started) { $this->started = $started; return $this; } /** * @return mixed */ public function getStarted() { return $this->started; } }