task = $task; } /** * Returns the related Task entity. * * @return Task */ public function getTask() { return $this->task; } /** * {@inheritdoc} */ public function getPath() { return sprintf('%s/task_%d.log', $this->root, $this->task->getId()); } }