public function setError($error) { $this->ocorrenciaTipo = self::OCORRENCIA_ERRO; $this->error = $error; return $this; }