public function save(Adherent $data) { if ($data->isValid()) { $this->add($data); } else { throw new RunTimeException('an adherent must be valid to be registerd, please check data and pull request again.'); } }