public function hasOcorrencia()
{
$ocorrencias = func_get_args();
if (count($ocorrencias) == 0 && empty($this->getOcorrencia())) {
return true;
}
if (count($ocorrencias) == 1 && is_array(func_get_arg(0))) {
$ocorrencias = func_get_arg(0);
}
if (in_array($this->getOcorrencia(), $ocorrencias)) {
return true;
}
return false;
}