FluentDOM\Serializer\Json\JsonML::getAttributes PHP Метод

getAttributes() приватный Метод

private getAttributes ( DOMElement $node ) : array | null
$node DOMElement
Результат array | null
    private function getAttributes(\DOMElement $node)
    {
        $result = [];
        foreach ($node->attributes as $name => $attribute) {
            $result[$name] = $this->getValue($attribute->value);
        }
        return $result;
    }