pQuery\DomNode::filter_onlytype PHP Method

filter_onlytype() protected method

Checks if node matches css query filter ":only-of-type"
See also: match()
protected filter_onlytype ( ) : boolean
return boolean
    protected function filter_onlytype()
    {
        if ($this->parent === null) {
            return false;
        } else {
            return count($this->parent->getChildrenByTag($this->tag, 'total', false)) === 1;
        }
    }
DomNode