FluentDOM\Serializer\Json\JsonML::getAttributes PHP Method

getAttributes() private method

private getAttributes ( DOMElement $node ) : array | null
$node DOMElement
return array | null
    private function getAttributes(\DOMElement $node)
    {
        $result = [];
        foreach ($node->attributes as $name => $attribute) {
            $result[$name] = $this->getValue($attribute->value);
        }
        return $result;
    }