PHP Class WsdlToPhp\PackageGenerator\Model\StructAttribute

Inheritance: extends AbstractModel
Afficher le fichier Open project: wsdltophp/packagegenerator Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( Generator $generator, string $name, string $type, Struct $struct ) Main constructor
getContainsElements ( ) : boolean Returns the type value
getDefaultValue ( ) : mixed Returns potential default value
getGetterName ( ) : string Returns the getter name for this attribute
getInheritanceStruct ( ) : Struct | null
getInheritanceStructMeta ( ) : string[]
getMeta ( ) : string[]
getOwner ( ) : Struct Returns the owner model object, meaning a Struct object
getRemovableFromRequest ( ) : boolean
getReservedMethodsInstance ( $filename = null ) : StructReservedMethod | StructArrayReservedMethod
getSetterName ( ) : string Returns the getter name for this attribute
getType ( ) : string Returns the type value
getTypeStruct ( ) : Struct | null
getTypeStructMeta ( ) : string[]
getUniqueName ( ) : string Returns the unique name in the current struct (for setters/getters and struct contrusctor array)
isArray ( ) : boolean If this attribute contains elements then it's an array only if its parent, the Struct, is not itself an array, if the parent is an array, then it is certainly not an array too
isRequired ( ) : boolean Returns true or false depending on minOccurs information associated to the attribute
isTypeStructArray ( ) : boolean
isXml ( ) : boolean
setContainsElements ( boolean $containsElements ) : StructAttribute Sets the type value
setRemovableFromRequest ( boolean $removableFromRequest ) : StructAttribute
setType ( string $type ) : StructAttribute Sets the type value

Method Details

__construct() public méthode

Main constructor
See also: AbstractModel::__construct()
public __construct ( Generator $generator, string $name, string $type, Struct $struct )
$generator WsdlToPhp\PackageGenerator\Generator\Generator
$name string the original name
$type string the type
$struct Struct defines the struct which owns this value

getContainsElements() public méthode

Returns the type value
public getContainsElements ( ) : boolean
Résultat boolean

getDefaultValue() public méthode

Returns potential default value
public getDefaultValue ( ) : mixed
Résultat mixed

getGetterName() public méthode

Returns the getter name for this attribute
public getGetterName ( ) : string
Résultat string

getInheritanceStruct() public méthode

public getInheritanceStruct ( ) : Struct | null
Résultat Struct | null

getInheritanceStructMeta() public méthode

public getInheritanceStructMeta ( ) : string[]
Résultat string[]

getMeta() public méthode

See also: WsdlToPhp\PackageGenerator\Model\AbstractModel::getMeta()
public getMeta ( ) : string[]
Résultat string[]

getOwner() public méthode

Returns the owner model object, meaning a Struct object
See also: AbstractModel::getOwner()
public getOwner ( ) : Struct
Résultat Struct

getRemovableFromRequest() public méthode

public getRemovableFromRequest ( ) : boolean
Résultat boolean

getReservedMethodsInstance() public méthode

public getReservedMethodsInstance ( $filename = null ) : StructReservedMethod | StructArrayReservedMethod
$filename
Résultat WsdlToPhp\PackageGenerator\ConfigurationReader\StructReservedMethod | WsdlToPhp\PackageGenerator\ConfigurationReader\StructArrayReservedMethod

getSetterName() public méthode

Returns the getter name for this attribute
public getSetterName ( ) : string
Résultat string

getType() public méthode

Returns the type value
public getType ( ) : string
Résultat string

getTypeStruct() public méthode

public getTypeStruct ( ) : Struct | null
Résultat Struct | null

getTypeStructMeta() public méthode

public getTypeStructMeta ( ) : string[]
Résultat string[]

getUniqueName() public méthode

Returns the unique name in the current struct (for setters/getters and struct contrusctor array)
public getUniqueName ( ) : string
Résultat string

isArray() public méthode

If this attribute contains elements then it's an array only if its parent, the Struct, is not itself an array, if the parent is an array, then it is certainly not an array too
public isArray ( ) : boolean
Résultat boolean

isRequired() public méthode

Returns true or false depending on minOccurs information associated to the attribute
public isRequired ( ) : boolean
Résultat boolean true|false

isTypeStructArray() public méthode

public isTypeStructArray ( ) : boolean
Résultat boolean

isXml() public méthode

public isXml ( ) : boolean
Résultat boolean

setContainsElements() public méthode

Sets the type value
public setContainsElements ( boolean $containsElements ) : StructAttribute
$containsElements boolean
Résultat StructAttribute

setRemovableFromRequest() public méthode

public setRemovableFromRequest ( boolean $removableFromRequest ) : StructAttribute
$removableFromRequest boolean
Résultat StructAttribute

setType() public méthode

Sets the type value
public setType ( string $type ) : StructAttribute
$type string
Résultat StructAttribute