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

getAllAttributes() protected method

protected getAllAttributes ( boolean $includeInheritanceAttributes, boolean $requiredFirst ) : StructAttribute
$includeInheritanceAttributes boolean
$requiredFirst boolean
return WsdlToPhp\PackageGenerator\Container\Model\StructAttribute
    protected function getAllAttributes($includeInheritanceAttributes, $requiredFirst)
    {
        $allAttributes = new StructAttributeContainer($this->getGenerator());
        if ($includeInheritanceAttributes === true) {
            $this->addInheritanceAttributes($allAttributes);
        }
        foreach ($this->attributes as $attribute) {
            $allAttributes->add($attribute);
        }
        if ($requiredFirst === true) {
            $attributes = $this->putRequiredFirst($allAttributes);
        } else {
            $attributes = $allAttributes;
        }
        return $attributes;
    }