public function addChild($child): AbstractElement
    {
        if ($child instanceof PhpMethod) {
            $child->setHasBody(false);
        }
        return parent::addChild($child);
    }
public function addChild($child): AbstractElement
    {
        if ($child instanceof PhpMethod) {
            $child->setHasBody(false);
        }
        return parent::addChild($child);
    }
public function addChild ( $ child ) : AbstractElement { if ( $ child instanceof PhpMethod ) { $ child -> setHasBody ( false ) ; } return parent :: addChild ( $ child ) ; }
ensure method has no body
@see \WsdlToPhp\PhpGenerator\Element\AbstractElement::addChild()
@param mixed
ensure method has no body