Neos.ContentRepository/Classes/Domain/Model/Node.php
public function copyInto(NodeInterface $referenceNode, $nodeName): NodeInterface
    {
        $this->emitBeforeNodeCopy($this, $referenceNode);
        $copiedNode = $this->copyIntoInternal($referenceNode, $nodeName, $this->getNodeType()->isAggregate());
        $this->emitAfterNodeCopy($this, $referenceNode);

        return $copiedNode;
    }
public function copyInto(NodeInterface $referenceNode, $nodeName): NodeInterface
    {
        $this->emitBeforeNodeCopy($this, $referenceNode);
        $copiedNode = $this->copyIntoInternal($referenceNode, $nodeName, $this->getNodeType()->isAggregate());
        $this->emitAfterNodeCopy($this, $referenceNode);

        return $copiedNode;
    }
public function copyInto ( NodeInterface $ referenceNode , $ nodeName ) : NodeInterface { $ this -> emitBeforeNodeCopy ( $ this , $ referenceNode ) ; $ copiedNode = $ this -> copyIntoInternal ( $ referenceNode , $ nodeName , $ this -> getNodeType ( ) -> isAggregate ( ) ) ; $ this -> emitAfterNodeCopy ( $ this , $ referenceNode ) ; return $ copiedNode ; }
Copies this node into the given node

@param NodeInterface $referenceNode
@param string $nodeName
@return NodeInterface
@throws NodeConstraintException
@throws NodeException
@throws NodeExistsException
@throws NodeTypeNotFoundException
@api
Copies this node into the given node