WsdlToPhp\PackageGenerator\Model\Struct::addInheritanceAttributes PHP Method

addInheritanceAttributes() protected method

protected addInheritanceAttributes ( StructAttribute $attributes )
$attributes WsdlToPhp\PackageGenerator\Container\Model\StructAttribute
    protected function addInheritanceAttributes(StructAttributeContainer $attributes)
    {
        if ($this->getInheritance() != '' && ($model = $this->getInheritanceStruct()) instanceof Struct) {
            while ($model->getIsStruct()) {
                foreach ($model->getAttributes() as $attribute) {
                    $attributes->add($attribute);
                }
                $model = $this->getGenerator()->getStruct($model->getInheritance());
            }
        }
    }