private function loadParam(\DOMXPath $xpath, \DOMNode $node)
{
$name = $this->getValueFromXPath('@name', $xpath, $node, 'string');
$type = $this->getValueFromXPath('@type', $xpath, $node, 'string');
$meta = $this->loadMeta('x:meta/x:*', $xpath, $node);
switch ($type) {
case 'collection':
$value = $this->loadParams('x:param', $xpath, $node);
break;
default:
$value = $this->getValueFromXPath('@value', $xpath, $node, 'string');
break;
}
return ['name' => $name, 'value' => $value, 'type' => $type, 'meta' => $meta];
}