Methods
Constructor
__construct(string $cssQuery, string | array $xpathQuery, \DOMDocument $document, \DOMNodeList $nodeList) : void
Parameters
$cssQuery
string
$xpathQuery
stringarray
Countable: get count
count() : int
Iterator: return current element
current() : \DOMNode
Retrieve CSS Query
getCssQuery() : string
Retrieve XPath query
getXpathQuery() : string
Iterator: return key of current element
key() : int
Iterator: move to next element
next() : \DOMNode
ArrayAccess: offset exists
offsetExists($key) : bool
Parameters
$key
Returns
bool
ArrayAccess: get offset
offsetGet($key) : mixed
Parameters
$key
Returns
mixed
ArrayAccess: set offset
offsetSet($key, $value) : void
Parameters
$key
$value
Exceptions
ArrayAccess: unset offset
offsetUnset($key) : void
Parameters
$key
Exceptions
Iterator: rewind to first element
rewind() : \DOMNode
Iterator: is current position valid?
valid() : bool
Properties
CSS Selector query
$cssQuery : string
Current iterator position
$position : int
XPath query
$xpathQuery : string