public function add($directory, $method = "DROPBOX", $exec_time = null) { $exec_time === null ?: ($exec_time = new \DateTime($exec_time)); $task = Task::add($method, $directory, $exec_time); $this->out("Creating task with root directory: {$directory}. Method: {$method}", 1, Shell::QUIET); $this->out('Created new task with id: ' . $task["task_id"], 1, Shell::QUIET); }