public function setAsParent($asParent) { $this->asParent = filter_var($asParent, FILTER_VALIDATE_BOOLEAN); return $this; }