PHPHtmlParser\Selector::alterNext PHP Method

alterNext() protected method

Attempts to figure out what the alteration will be for the next element.
protected alterNext ( array $rule ) : array
$rule array
return array
    protected function alterNext($rule)
    {
        $options = [];
        if ($rule['tag'] == '>') {
            $options['checkGrandChildren'] = false;
        }
        return $options;
    }