FluentDOM\Loader\Json\Rayfish::transferChildren PHP Method

transferChildren() private method

private transferChildren ( DOMElement $target, stdClass $json, stdClass $namespaces, stdClass $attributes )
$target DOMElement
$json stdClass
$namespaces stdClass
$attributes stdClass
    private function transferChildren(\DOMElement $target, $json, $namespaces, $attributes)
    {
        if (isset($json->{'#children'})) {
            $this->transferAttributes($target, $namespaces, $attributes);
            foreach ($json->{'#children'} as $value) {
                $name = isset($value->{'#name'}) ? $value->{'#name'} : '@';
                if (substr($name, 0, 1) != '@') {
                    $this->transferTo($target, $value);
                }
            }
        }
    }