private static function parseList(DOMNodeList
$list): array
{ if ($list->length === 0
) { return [];
} $items =
[];
/** @var DOMElement $item */
foreach ($list as $item) { $item = self::
parseItem($item);
$items[$item['typeName'
]] =
$item;
unset($items[$item['typeName'
]]['typeName'
]);
} return $items;
} private static function parseItem(DOMElement
$element): array
{ $item =
[];
if ($typeName = self::
getElementChildValueByName($element, 'typeName', true
)) {