FluentDOM\Loader\Json\Rayfish::transferAttributes PHP Méthode

transferAttributes() private méthode

Transfer attributes to the node.
private transferAttributes ( Element $node, stdClass $namespaces, stdClass $attributes )
$node FluentDOM\Element
$namespaces stdClass
$attributes stdClass
    private function transferAttributes(Element $node, $namespaces, $attributes)
    {
        foreach ($namespaces as $name => $value) {
            $node->setAttribute($name, $value);
        }
        foreach ($attributes as $name => $value) {
            $node->setAttribute($name, $value);
        }
    }