Flow\JSONPath\JSONPathToken::validateType PHP Method

validateType() public method

public validateType ( $type )
    public function validateType($type)
    {
        if (!in_array($type, static::getTypes(), true)) {
            throw new JSONPathException('Invalid token: ' . $type);
        }
    }