WsdlToPhp\PackageGenerator\Model\Struct::getAttributes PHP Méthode

getAttributes() public méthode

Returns the attributes of the struct and potentially from the parent class
public getAttributes ( boolean $includeInheritanceAttributes = false, boolean $requiredFirst = false ) : StructAttribute
$includeInheritanceAttributes boolean include the attributes of parent class, default parent attributes are not included. If true, then the array is an associative array containing and index "attribute" for the StructAttribute object and an index "model" for the Struct object.
$requiredFirst boolean places the required attributes first, then the not required in order to have the _contrust method with the required attribute at first
Résultat WsdlToPhp\PackageGenerator\Container\Model\StructAttribute
    public function getAttributes($includeInheritanceAttributes = false, $requiredFirst = false)
    {
        if ($includeInheritanceAttributes === false && $requiredFirst === false) {
            $attributes = $this->attributes;
        } else {
            $attributes = $this->getAllAttributes($includeInheritanceAttributes, $requiredFirst);
        }
        return $attributes;
    }