task = $task; } /** * Returns count of task. * * @param array $filter * * @return int */ public function count() { return 0; } /** * Find task by slug. * * @param array $filter * * @return int */ public function task($slug) { return $this->task ->findBySlug($slig) ->toArray(); } }