procedimento = $procedimento; } /** * Determine if the validation rule passes. * * @param string $attribute * @param mixed $value * @return bool */ public function passes($attribute, $value) { $validation = new ProcedimentoValidationService($this->procedimento); return $validation->isOnValidCompetencia(); } /** * Get the validation error message. * * @return string */ public function message() { return "CompetĂȘncia do :attribute invĂĄlida."; } }