16 private $nodePathMatcher;
23 private $assocArrays = [];
30 private $numericArrays = [];
39 array $assocArrayAttributes,
40 array $numericArrays = []
42 $this->nodePathMatcher = $nodePathMatcher;
43 $this->assocArrays = $assocArrayAttributes;
44 $this->numericArrays = $numericArrays;
56 if ($this->nodePathMatcher->match(
$pathPattern, $nodeXpath)) {
71 foreach ($this->assocArrays as
$pathPattern => $keyAttribute) {
72 if ($this->nodePathMatcher->match(
$pathPattern, $nodeXpath)) {
__construct(NodePathMatcher $nodePathMatcher, array $assocArrayAttributes, array $numericArrays=[])
getAssocArrayKeyAttribute($nodeXpath)
isNumericArray($nodeXpath)