src/DMS/Filter/Filters/Loader/FilterLoader.php
public function getFilterForRule(Rule $rule)
    {
        $filterIdentifier = $rule->getFilter();

        if (class_exists($filterIdentifier)) {
            return new $filterIdentifier;
        }

        $error = "Unable to locate filter for: $filterIdentifier defined in " . get_class($rule);
        throw new \UnexpectedValueException($error);
    }
public function getFilterForRule(Rule $rule)
    {
        $filterIdentifier = $rule->getFilter();

        if (class_exists($filterIdentifier)) {
            return new $filterIdentifier;
        }

        $error = "Unable to locate filter for: $filterIdentifier defined in " . get_class($rule);
        throw new \UnexpectedValueException($error);
    }
public function getFilterForRule ( Rule $ rule ) { $ filterIdentifier = $ rule -> getFilter ( ) ; if ( class_exists ( $ filterIdentifier ) ) { return new $ filterIdentifier ; } $ error = "Unable to locate filter for: $filterIdentifier defined in " . get_class ( $ rule ) ; throw new \ UnexpectedValueException ( $ error ) ; }
Finds the filter responsible for executing a specific rule

@param Rule $rule

@throws \UnexpectedValueException If filter can't be located
@return BaseFilter
Finds the filter responsible for executing a specific rule