public function __construct($filePath) { $this->service = new TaskService(new JsonFileTaskRepository($this->filePath = $filePath)); }