PHP 클래스 WsdlToPhp\PackageGenerator\File\AbstractModelFile

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

보호된 프로퍼티들

프로퍼티 타입 설명
$model WsdlToPhp\PackageGenerator\Model\AbstractModel

공개 메소드들

메소드 설명
getDestinationFolder ( boolean $withSrc = true ) : string
getFileDestination ( boolean $withSrc = true ) : string
getModel ( ) : AbstractModel
getModelFromStructAttribute ( StructAttribute $attribute = null ) : Struct | null
getPhpType ( mixed $type, mixed $fallback = self::TYPE_STRING ) : mixed See http://php.net/manual/fr/language.oop5.typehinting.php for these cases Also see http://www.w3schools.com/schema/schema_dtypes_numeric.asp
getRestrictionFromStructAttribute ( StructAttribute $attribute = null ) : Struct | null
getStructAttributeType ( StructAttribute $attribute = null, boolean $namespaced = false ) : string
getStructAttributeTypeAsPhpType ( StructAttribute $attribute = null ) : string
getValidType ( mixed $type, mixed $fallback = null ) : mixed See http://php.net/manual/fr/language.oop5.typehinting.php for these cases Also see http://www.w3schools.com/schema/schema_dtypes_numeric.asp
setModel ( AbstractModel $model ) : AbstractModelFile
writeFile ( boolean $withSrc = true ) : integer | boolean

보호된 메소드들

메소드 설명
addAnnotationBlock ( ) : AbstractModelFile
addClassElement ( ) : AbstractModelFile
defineConstants ( WsdlToPhp\PhpGenerator\Component\PhpClass $class ) : AbstractModelFile
defineGeneralAnnotations ( WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock $block ) : AbstractModelFile
defineMethods ( WsdlToPhp\PhpGenerator\Component\PhpClass $class ) : AbstractModelFile
defineModelAnnotationsFromWsdl ( WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock $block, AbstractModel $model = null ) : AbstractModelFile
defineNamespace ( ) : AbstractModelFile
definePackageAnnotations ( WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock $block ) : AbstractModelFile
defineProperties ( WsdlToPhp\PhpGenerator\Component\PhpClass $class ) : AbstractModelFile
defineStringMethod ( WsdlToPhp\PhpGenerator\Component\PhpClass $class )
defineUseStatement ( ) : AbstractModelFile
getClassAnnotationBlock ( ) : WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock
getClassConstants ( Constant $constants )
getClassDeclarationLine ( ) : string
getClassDeclarationLineText ( ) : string
getClassMethods ( Method $methods )
getClassProperties ( Property $properties )
getConstantAnnotationBlock ( WsdlToPhp\PhpGenerator\Element\PhpConstant $constant ) : WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock | null
getMethodAnnotationBlock ( WsdlToPhp\PhpGenerator\Element\PhpMethod $method ) : WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock | null
getModelByName ( string $name ) : Struct | null
getPackageName ( ) : string
getPropertyAnnotationBlock ( WsdlToPhp\PhpGenerator\Element\PhpProperty $property ) : WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock | null
getStructAttribute ( StructAttribute $attribute = null ) : StructAttribute
getStructAttributeTypeGetAnnotation ( StructAttribute $attribute = null, boolean $returnArrayType = true ) : string
getStructAttributeTypeHint ( StructAttribute $attribute = null, boolean $returnArrayType = true ) : string
getStructAttributeTypeSetAnnotation ( StructAttribute $attribute = null, boolean $returnArrayType = true ) : string
getToStringMethod ( ) : WsdlToPhp\PhpGenerator\Element\PhpMethod
getToStringMethodAnnotationBlock ( ) : WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock
useBrackets ( StructAttribute $attribute, string $returnArrayType = true ) : boolean

메소드 상세

addAnnotationBlock() 보호된 메소드

protected addAnnotationBlock ( ) : AbstractModelFile
리턴 AbstractModelFile

addClassElement() 보호된 메소드

protected addClassElement ( ) : AbstractModelFile
리턴 AbstractModelFile

defineConstants() 보호된 메소드

protected defineConstants ( WsdlToPhp\PhpGenerator\Component\PhpClass $class ) : AbstractModelFile
$class WsdlToPhp\PhpGenerator\Component\PhpClass
리턴 AbstractModelFile

defineGeneralAnnotations() 보호된 메소드

protected defineGeneralAnnotations ( WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock $block ) : AbstractModelFile
$block WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock
리턴 AbstractModelFile

defineMethods() 보호된 메소드

protected defineMethods ( WsdlToPhp\PhpGenerator\Component\PhpClass $class ) : AbstractModelFile
$class WsdlToPhp\PhpGenerator\Component\PhpClass
리턴 AbstractModelFile

defineModelAnnotationsFromWsdl() 보호된 메소드

protected defineModelAnnotationsFromWsdl ( WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock $block, AbstractModel $model = null ) : AbstractModelFile
$block WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock
$model WsdlToPhp\PackageGenerator\Model\AbstractModel
리턴 AbstractModelFile

defineNamespace() 보호된 메소드

protected defineNamespace ( ) : AbstractModelFile
리턴 AbstractModelFile

definePackageAnnotations() 보호된 메소드

protected definePackageAnnotations ( WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock $block ) : AbstractModelFile
$block WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock
리턴 AbstractModelFile

defineProperties() 보호된 메소드

protected defineProperties ( WsdlToPhp\PhpGenerator\Component\PhpClass $class ) : AbstractModelFile
$class WsdlToPhp\PhpGenerator\Component\PhpClass
리턴 AbstractModelFile

defineStringMethod() 보호된 메소드

protected defineStringMethod ( WsdlToPhp\PhpGenerator\Component\PhpClass $class )
$class WsdlToPhp\PhpGenerator\Component\PhpClass

defineUseStatement() 보호된 메소드

protected defineUseStatement ( ) : AbstractModelFile
리턴 AbstractModelFile

getClassAnnotationBlock() 보호된 메소드

protected getClassAnnotationBlock ( ) : WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock
리턴 WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock

getClassConstants() 추상적인 보호된 메소드

abstract protected getClassConstants ( Constant $constants )
$constants WsdlToPhp\PackageGenerator\Container\PhpElement\Constant

getClassDeclarationLine() 보호된 메소드

protected getClassDeclarationLine ( ) : string
리턴 string

getClassDeclarationLineText() 보호된 메소드

protected getClassDeclarationLineText ( ) : string
리턴 string

getClassMethods() 추상적인 보호된 메소드

abstract protected getClassMethods ( Method $methods )
$methods WsdlToPhp\PackageGenerator\Container\PhpElement\Method

getClassProperties() 추상적인 보호된 메소드

abstract protected getClassProperties ( Property $properties )
$properties WsdlToPhp\PackageGenerator\Container\PhpElement\Property

getConstantAnnotationBlock() 추상적인 보호된 메소드

abstract protected getConstantAnnotationBlock ( WsdlToPhp\PhpGenerator\Element\PhpConstant $constant ) : WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock | null
$constant WsdlToPhp\PhpGenerator\Element\PhpConstant
리턴 WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock | null

getDestinationFolder() 공개 메소드

public getDestinationFolder ( boolean $withSrc = true ) : string
$withSrc boolean
리턴 string

getFileDestination() 공개 메소드

public getFileDestination ( boolean $withSrc = true ) : string
$withSrc boolean
리턴 string

getMethodAnnotationBlock() 추상적인 보호된 메소드

abstract protected getMethodAnnotationBlock ( WsdlToPhp\PhpGenerator\Element\PhpMethod $method ) : WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock | null
$method WsdlToPhp\PhpGenerator\Element\PhpMethod
리턴 WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock | null

getModel() 공개 메소드

public getModel ( ) : AbstractModel
리턴 WsdlToPhp\PackageGenerator\Model\AbstractModel

getModelByName() 보호된 메소드

protected getModelByName ( string $name ) : Struct | null
$name string
리턴 WsdlToPhp\PackageGenerator\Model\Struct | null

getModelFromStructAttribute() 공개 메소드

public getModelFromStructAttribute ( StructAttribute $attribute = null ) : Struct | null
$attribute WsdlToPhp\PackageGenerator\Model\StructAttribute
리턴 WsdlToPhp\PackageGenerator\Model\Struct | null

getPackageName() 보호된 메소드

protected getPackageName ( ) : string
리턴 string

getPhpType() 공개 정적인 메소드

See http://php.net/manual/fr/language.oop5.typehinting.php for these cases Also see http://www.w3schools.com/schema/schema_dtypes_numeric.asp
public static getPhpType ( mixed $type, mixed $fallback = self::TYPE_STRING ) : mixed
$type mixed
$fallback mixed
리턴 mixed

getPropertyAnnotationBlock() 추상적인 보호된 메소드

abstract protected getPropertyAnnotationBlock ( WsdlToPhp\PhpGenerator\Element\PhpProperty $property ) : WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock | null
$property WsdlToPhp\PhpGenerator\Element\PhpProperty
리턴 WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock | null

getRestrictionFromStructAttribute() 공개 메소드

public getRestrictionFromStructAttribute ( StructAttribute $attribute = null ) : Struct | null
$attribute WsdlToPhp\PackageGenerator\Model\StructAttribute
리턴 WsdlToPhp\PackageGenerator\Model\Struct | null

getStructAttribute() 보호된 메소드

protected getStructAttribute ( StructAttribute $attribute = null ) : StructAttribute
$attribute WsdlToPhp\PackageGenerator\Model\StructAttribute
리턴 WsdlToPhp\PackageGenerator\Model\StructAttribute

getStructAttributeType() 공개 메소드

public getStructAttributeType ( StructAttribute $attribute = null, boolean $namespaced = false ) : string
$attribute WsdlToPhp\PackageGenerator\Model\StructAttribute
$namespaced boolean
리턴 string

getStructAttributeTypeAsPhpType() 공개 메소드

public getStructAttributeTypeAsPhpType ( StructAttribute $attribute = null ) : string
$attribute WsdlToPhp\PackageGenerator\Model\StructAttribute
리턴 string

getStructAttributeTypeGetAnnotation() 보호된 메소드

protected getStructAttributeTypeGetAnnotation ( StructAttribute $attribute = null, boolean $returnArrayType = true ) : string
$attribute WsdlToPhp\PackageGenerator\Model\StructAttribute
$returnArrayType boolean
리턴 string

getStructAttributeTypeHint() 보호된 메소드

protected getStructAttributeTypeHint ( StructAttribute $attribute = null, boolean $returnArrayType = true ) : string
$attribute WsdlToPhp\PackageGenerator\Model\StructAttribute
$returnArrayType boolean
리턴 string

getStructAttributeTypeSetAnnotation() 보호된 메소드

protected getStructAttributeTypeSetAnnotation ( StructAttribute $attribute = null, boolean $returnArrayType = true ) : string
$attribute WsdlToPhp\PackageGenerator\Model\StructAttribute
$returnArrayType boolean
리턴 string

getToStringMethod() 보호된 메소드

protected getToStringMethod ( ) : WsdlToPhp\PhpGenerator\Element\PhpMethod
리턴 WsdlToPhp\PhpGenerator\Element\PhpMethod

getToStringMethodAnnotationBlock() 보호된 메소드

protected getToStringMethodAnnotationBlock ( ) : WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock
리턴 WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock

getValidType() 공개 정적인 메소드

See http://php.net/manual/fr/language.oop5.typehinting.php for these cases Also see http://www.w3schools.com/schema/schema_dtypes_numeric.asp
public static getValidType ( mixed $type, mixed $fallback = null ) : mixed
$type mixed
$fallback mixed
리턴 mixed

setModel() 공개 메소드

public setModel ( AbstractModel $model ) : AbstractModelFile
$model WsdlToPhp\PackageGenerator\Model\AbstractModel
리턴 AbstractModelFile

useBrackets() 보호된 메소드

protected useBrackets ( StructAttribute $attribute, string $returnArrayType = true ) : boolean
$attribute WsdlToPhp\PackageGenerator\Model\StructAttribute
$returnArrayType string
리턴 boolean

writeFile() 공개 메소드

또한 보기: WsdlToPhp\PackageGenerator\File\AbstractFile::writeFile()
public writeFile ( boolean $withSrc = true ) : integer | boolean
$withSrc boolean
리턴 integer | boolean

프로퍼티 상세

$model 보호되어 있는 프로퍼티

protected AbstractModel,WsdlToPhp\PackageGenerator\Model $model
리턴 WsdlToPhp\PackageGenerator\Model\AbstractModel