Flow\JSONPath\JSONPathToken::buildFilter PHP Method

buildFilter() public method

public buildFilter ( $options ) : AbstractFilter
return AbstractFilter
    public function buildFilter($options)
    {
        $filterClass = 'Flow\\JSONPath\\Filters\\' . ucfirst($this->type) . 'Filter';
        if (!class_exists($filterClass)) {
            throw new JSONPathException("No filter class exists for token [{$this->type}]");
        }
        return new $filterClass($this, $options);
    }