*/ trait TaskAwareTrait { private $task; /** * @param TaskInterface $task * @return $this */ public function setTask(TaskInterface $task) { $this->task = $task; return $this; } /** * @return TaskInterface */ public function getTask() { return $this->task; } }