Scalr\Tests\Functional\Api\V2\ApiTest::getFilter PHP Method

getFilter() public method

Makes the filtering rule for the specified properties of an object
public getFilter ( string $class = null, string $property = null, array $values = [] ) : FilterRule
$class string optional The object name
$property string optional The property name
$values array optional The array of filter values
return Scalr\Tests\Functional\Api\V2\Iterator\FilterRule
    public function getFilter($class = null, $property = null, array $values = [])
    {
        if (isset($this->simpleFilterRules[$class][$property])) {
            $filterClass = $this->simpleFilterRules[$class][$property];
            return new $filterClass($values);
        }
        return new FilterRule($values);
    }