tasks = $tasks; } /** * @return Terminable[] */ public function all(): array { return $this->tasks; } }