PHP Class WsdlToPhp\PackageGenerator\Model\StructAttribute

Inheritance: extends AbstractModel
Show file Open project: wsdltophp/packagegenerator Class Usage Examples

Public Methods

Method 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 method

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 method

Returns the type value
public getContainsElements ( ) : boolean
return boolean

getDefaultValue() public method

Returns potential default value
public getDefaultValue ( ) : mixed
return mixed

getGetterName() public method

Returns the getter name for this attribute
public getGetterName ( ) : string
return string

getInheritanceStruct() public method

public getInheritanceStruct ( ) : Struct | null
return Struct | null

getInheritanceStructMeta() public method

public getInheritanceStructMeta ( ) : string[]
return string[]

getMeta() public method

See also: WsdlToPhp\PackageGenerator\Model\AbstractModel::getMeta()
public getMeta ( ) : string[]
return string[]

getOwner() public method

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

getRemovableFromRequest() public method

getReservedMethodsInstance() public method

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

getSetterName() public method

Returns the getter name for this attribute
public getSetterName ( ) : string
return string

getType() public method

Returns the type value
public getType ( ) : string
return string

getTypeStruct() public method

public getTypeStruct ( ) : Struct | null
return Struct | null

getTypeStructMeta() public method

public getTypeStructMeta ( ) : string[]
return string[]

getUniqueName() public method

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

isArray() public method

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
return boolean

isRequired() public method

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

isTypeStructArray() public method

public isTypeStructArray ( ) : boolean
return boolean

isXml() public method

public isXml ( ) : boolean
return boolean

setContainsElements() public method

Sets the type value
public setContainsElements ( boolean $containsElements ) : StructAttribute
$containsElements boolean
return StructAttribute

setRemovableFromRequest() public method

public setRemovableFromRequest ( boolean $removableFromRequest ) : StructAttribute
$removableFromRequest boolean
return StructAttribute

setType() public method

Sets the type value
public setType ( string $type ) : StructAttribute
$type string
return StructAttribute