QueryPath\CSS\QueryPathEventHandler::candidateList PHP Метод

candidateList() приватный Метод

This is a utility method that gets the list of elements that should be evaluated in the context. If $this->findAnyElement is TRUE, this will return a list of every element that appears in the subtree of $this->matches. Otherwise, it will just return $this->matches.
private candidateList ( )
    private function candidateList()
    {
        if ($this->findAnyElement) {
            return $this->getAllCandidates($this->matches);
        }
        return $this->matches;
    }