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