\WebinoDraw\DomLocator

Class Locator

Summary

Methods
Properties
Constants
__construct()
set()
locate()
merge()
xpathMatchAny()
No public properties found
No constants found
No protected methods found
$transformator
N/A
normalizeLocator()
No private properties found
N/A

Properties

Methods

__construct()

__construct(\WebinoDraw\Dom\Locator\Transformator  $transformator, string|array  $input = null) 

Parameters

\WebinoDraw\Dom\Locator\Transformator $transformator
string|array $input

set()

set(string|array  $input) : $this

Parameters

string|array $input

Throws

\WebinoDraw\Exception\UnexpectedValueException

Returns

$this

locate()

locate(\WebinoDraw\Dom\NodeInterface  $node, string  $locator) : \DOMNodeList

Parameters

\WebinoDraw\Dom\NodeInterface $node
string $locator

Throws

\WebinoDraw\Exception\InvalidArgumentException

Returns

\DOMNodeList

merge()

merge(array  $array) : $this

Parameters

array $array

Returns

$this

xpathMatchAny()

xpathMatchAny() : string

Xpath joined by OR

Returns

string

normalizeLocator()

normalizeLocator(string  $locator) : string

Parameters

string $locator

Returns

string