public function setActive($active) { if ($active) { $this->active = (bool) $active; } else { $this->active = null; } return $this; }