public function canApply()
    {
        $nodeType = $this->getSubject()->getNodeType();

        return $this->getSiblingNode()->getParent()->isNodeTypeAllowedAsChildNode($nodeType);
    }
public function canApply()
    {
        $nodeType = $this->getSubject()->getNodeType();

        return $this->getSiblingNode()->getParent()->isNodeTypeAllowedAsChildNode($nodeType);
    }
public function canApply ( ) { $ nodeType = $ this -> getSubject ( ) -> getNodeType ( ) ; return $ this -> getSiblingNode ( ) -> getParent ( ) -> isNodeTypeAllowedAsChildNode ( $ nodeType ) ; }
"Subject" is the to-be-copied node; the "sibling" node is the node after which the "Subject" should be copied.

@return boolean
Subject is the to - be - copied node ; the sibling node is the node after which the Subject should be copied .