public function setValorDocumento($valor_documento) { if ($valor_documento >= 19999999) { throw new \UnexpectedValueException('O campo Valor do Documento não pode ser mais do que 9.999.999,99'); } return parent::setValorDocumento($valor_documento); }