public static function inserir($departamento) { $departamentoexiste = DepartamentoService::getByNome($departamento->getNome()); if (is_null($departamentoexiste)) { DepartamentoDao::inserir($departamento); return 0; } else { return NULL; } }