FluentDOM\Nodes\Fetcher::validateContextIgnore PHP Method

validateContextIgnore() private method

Validate if the context can be ignored.
private validateContextIgnore ( string $expression, integer $options ) : boolean
$expression string
$options integer
return boolean
    private function validateContextIgnore($expression, $options)
    {
        if (!is_string($expression) || empty($expression)) {
            throw new \InvalidArgumentException('Invalid selector/expression.');
        }
        return Constraints::hasOption($options, self::IGNORE_CONTEXT) || strpos($expression, '/') === 0;
    }