protected function detectRules(AppliesToResource $resource)
    {

        if (!$this->ruleDetector) {
            throw new UnConfiguredException("You have to assign a rule detector to detect rules");
        }

        return $this->ruleDetector->detectRules($resource, $this->relations);
    }
protected function detectRules(AppliesToResource $resource)
    {

        if (!$this->ruleDetector) {
            throw new UnConfiguredException("You have to assign a rule detector to detect rules");
        }

        return $this->ruleDetector->detectRules($resource, $this->relations);
    }
protected function detectRules ( AppliesToResource $ resource ) { if ( ! $ this -> ruleDetector ) { throw new UnConfiguredException ( "You have to assign a rule detector to detect rules" ) ; } return $ this -> ruleDetector -> detectRules ( $ resource , $ this -> relations ) ; }
Try to detect rules for the resource of this validator.

@param AppliesToResource $resource

@return array
Try to detect rules for the resource of this validator .