PHP 클래스 WsdlToPhp\PackageGenerator\Model\Struct

상속: extends AbstractModel
파일 보기 프로젝트 열기: wsdltophp/packagegenerator 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( Generator $generator, string $name, boolean $isStruct = true, boolean $isRestriction = false ) Main constructor
addAttribute ( string $attributeName, string $attributeType ) : Struct Adds attribute based on its original name
addValue ( mixed $value ) : Struct Adds value to values array
countOwnAttributes ( ) : integer Returns the number of own attributes
getAttribute ( string $attributeName ) : StructAttribute | null Returns the attribute by its name, otherwise null
getAttributes ( boolean $includeInheritanceAttributes = false, boolean $requiredFirst = false ) : StructAttribute Returns the attributes of the struct and potentially from the parent class
getContextualPart ( ) : string Returns the contextual part of the class name for the package
getDocSubPackages ( ) : array Returns the sub package name which the model belongs to Must be overridden by sub classes
getExtends ( boolean $short = false ) : string Allows to define from which class the curent model extends
getInheritanceStruct ( ) : Struct | null
getIsRestriction ( ) : boolean Returns the isRestriction value
getIsStruct ( ) : boolean Returns the isStruct value
getMeta ( ) : string[]
getReservedMethodsInstance ( $filename = null ) : StructReservedMethod | StructArrayReservedMethod
getTopInheritance ( ) : Struct | null
getValue ( string $value ) : StructValue | null Gets the value object for the given value
getValues ( ) : StructValue Returns the values for an enumeration
isArray ( ) : boolean Returns true if the current struct is a collection of values (like an array)
setAttributes ( StructAttribute $structAttributeContainer ) : Struct Sets the attributes of the struct
setIsRestriction ( boolean $isRestriction = true ) : Struct Sets the isRestriction value
setIsStruct ( boolean $isStruct = true ) : Struct Sets the isStruct value

보호된 메소드들

메소드 설명
addInheritanceAttributes ( StructAttribute $attributes )
getAllAttributes ( boolean $includeInheritanceAttributes, boolean $requiredFirst ) : StructAttribute
putRequiredFirst ( StructAttribute $allAttributes ) : StructAttribute

비공개 메소드들

메소드 설명
setValues ( StructValue $structValueContainer ) : Struct Sets the values for an enumeration

메소드 상세

__construct() 공개 메소드

Main constructor
또한 보기: AbstractModel::__construct()
public __construct ( Generator $generator, string $name, boolean $isStruct = true, boolean $isRestriction = false )
$generator WsdlToPhp\PackageGenerator\Generator\Generator
$name string the original name
$isStruct boolean defines if it's a real sruct or not
$isRestriction boolean defines if it's an enumeration or not

addAttribute() 공개 메소드

Adds attribute based on its original name
public addAttribute ( string $attributeName, string $attributeType ) : Struct
$attributeName string the attribute name
$attributeType string the attribute type
리턴 Struct

addInheritanceAttributes() 보호된 메소드

protected addInheritanceAttributes ( StructAttribute $attributes )
$attributes WsdlToPhp\PackageGenerator\Container\Model\StructAttribute

addValue() 공개 메소드

Adds value to values array
public addValue ( mixed $value ) : Struct
$value mixed the original value
리턴 Struct

countOwnAttributes() 공개 메소드

Returns the number of own attributes
public countOwnAttributes ( ) : integer
리턴 integer

getAllAttributes() 보호된 메소드

protected getAllAttributes ( boolean $includeInheritanceAttributes, boolean $requiredFirst ) : StructAttribute
$includeInheritanceAttributes boolean
$requiredFirst boolean
리턴 WsdlToPhp\PackageGenerator\Container\Model\StructAttribute

getAttribute() 공개 메소드

Returns the attribute by its name, otherwise null
public getAttribute ( string $attributeName ) : StructAttribute | null
$attributeName string the original attribute name
리턴 StructAttribute | null

getAttributes() 공개 메소드

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
리턴 WsdlToPhp\PackageGenerator\Container\Model\StructAttribute

getContextualPart() 공개 메소드

Returns the contextual part of the class name for the package
또한 보기: AbstractModel::getContextualPart()
public getContextualPart ( ) : string
리턴 string

getDocSubPackages() 공개 메소드

Returns the sub package name which the model belongs to Must be overridden by sub classes
또한 보기: AbstractModel::getDocSubPackages()
public getDocSubPackages ( ) : array
리턴 array

getExtends() 공개 메소드

Allows to define from which class the curent model extends
public getExtends ( boolean $short = false ) : string
$short boolean
리턴 string

getInheritanceStruct() 공개 메소드

public getInheritanceStruct ( ) : Struct | null
리턴 Struct | null

getIsRestriction() 공개 메소드

Returns the isRestriction value
public getIsRestriction ( ) : boolean
리턴 boolean

getIsStruct() 공개 메소드

Returns the isStruct value
public getIsStruct ( ) : boolean
리턴 boolean

getMeta() 공개 메소드

또한 보기: WsdlToPhp\PackageGenerator\Model\AbstractModel::getMeta()
public getMeta ( ) : string[]
리턴 string[]

getReservedMethodsInstance() 공개 메소드

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

getTopInheritance() 공개 메소드

public getTopInheritance ( ) : Struct | null
리턴 Struct | null

getValue() 공개 메소드

Gets the value object for the given value
public getValue ( string $value ) : StructValue | null
$value string Value name
리턴 StructValue | null

getValues() 공개 메소드

Returns the values for an enumeration
public getValues ( ) : StructValue
리턴 WsdlToPhp\PackageGenerator\Container\Model\StructValue

isArray() 공개 메소드

Returns true if the current struct is a collection of values (like an array)
public isArray ( ) : boolean
리턴 boolean

putRequiredFirst() 보호된 메소드

protected putRequiredFirst ( StructAttribute $allAttributes ) : StructAttribute
$allAttributes WsdlToPhp\PackageGenerator\Container\Model\StructAttribute
리턴 WsdlToPhp\PackageGenerator\Container\Model\StructAttribute

setAttributes() 공개 메소드

Sets the attributes of the struct
public setAttributes ( StructAttribute $structAttributeContainer ) : Struct
$structAttributeContainer WsdlToPhp\PackageGenerator\Container\Model\StructAttribute
리턴 Struct

setIsRestriction() 공개 메소드

Sets the isRestriction value
public setIsRestriction ( boolean $isRestriction = true ) : Struct
$isRestriction boolean
리턴 Struct

setIsStruct() 공개 메소드

Sets the isStruct value
public setIsStruct ( boolean $isStruct = true ) : Struct
$isStruct boolean
리턴 Struct