src/Peach/Markup/HelperObject.php
private function createPrototype()
    {
        $original = $this->node;
        if ($original instanceof ContainerElement) {
            $node = new ContainerElement($original->getName());
            $node->setAttributes($original->getAttributes());
            return $node;
        }
        if ($original instanceof EmptyElement) {
            $node = new EmptyElement($original->getName());
            $node->setAttributes($original->getAttributes());
            return $node;
        }
        
        return null;
    }
private function createPrototype()
    {
        $original = $this->node;
        if ($original instanceof ContainerElement) {
            $node = new ContainerElement($original->getName());
            $node->setAttributes($original->getAttributes());
            return $node;
        }
        if ($original instanceof EmptyElement) {
            $node = new EmptyElement($original->getName());
            $node->setAttributes($original->getAttributes());
            return $node;
        }
        
        return null;
    }
このオブジェクトをプロトタイプとして, 新しい HelperObject を生成します.

@return Element