root = $root; } /** * Generates a log file for a Task. * * @param Task $task * * @return LogFileInterface */ public function forTask(Task $task) { return new TaskLogFile($this->root, $task); } /** * Generates a log file for a Manager. * * @return LogFileInterface */ public function forManager() { return new ManagerLogFile($this->root); } }