private function setTitle($title) { if ($title === '') { throw new \RuntimeException('Task title must be supplied.'); } $this->title = $title; }