PHP 클래스 WsdlToPhp\PackageGenerator\Generator\Generator

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

공개 메소드들

메소드 설명
__construct ( GeneratorOptions $options ) Constructor
addSchemaToWsdl ( Wsdl $wsdl, string $schemaLocation ) : Generator Adds Wsdl location
generatePackage ( ) : Generator Generates all classes based on options
getFiles ( ) : GeneratorFiles
getOptionAddComments ( ) : array Gets the optionAddComments value
getOptionArraysFolder ( ) : string Gets the optionArraysFolder value
getOptionBasicLogin ( ) : string Gets the optionBasicLogin value
getOptionBasicPassword ( ) : string Gets the optionBasicPassword value
getOptionCategory ( ) : string Sets the optionCategory value
getOptionComposerName ( ) : string Gets the optionComposerName value
getOptionDestination ( ) : string Gets the optionDestination value
getOptionEnumsFolder ( ) : string Gets the optionEnumsFolder value
getOptionGatherMethods ( ) : string Sets the optionGatherMethods value
getOptionGenerateTutorialFile ( ) : boolean Gets the optionGenerateTutorialFile value
getOptionGenericConstantsNames ( ) : boolean Gets the optionGenericConstantsNames value
getOptionNamespacePrefix ( ) : string Gets the optionNamespacePrefix value
getOptionOrigin ( ) : string Gets the optionOrigin value
getOptionPrefix ( boolean $ucFirst = true ) : string Gets the package name prefix
getOptionProxyHost ( ) : string Gets the optionProxyHost value
getOptionProxyLogin ( ) : string Gets the optionProxyLogin value
getOptionProxyPassword ( ) : string Gets the optionProxyPassword value
getOptionProxyPort ( ) : string Gets the optionProxyPort value
getOptionServicesFolder ( ) : string Gets the optionServicesFolder value
getOptionSoapClientClass ( ) : string Gets the optionSoapClientClass value
getOptionSoapOptions ( ) : string Gets the optionSoapOptions value
getOptionStandalone ( ) : boolean Gets the optionStandalone value
getOptionStructArrayClass ( ) : string Gets the optionStructArrayClass value
getOptionStructClass ( ) : string Gets the optionStructClass value
getOptionStructsFolder ( ) : string Gets the optionStructsFolder value
getOptionSuffix ( boolean $ucFirst = true ) : string Gets the package name suffix
getOptionValidation ( ) : boolean Gets the optionValidation value
getOptions ( ) : GeneratorOptions
getParsers ( ) : GeneratorParsers
getService ( string $serviceName ) : Service | null Gets a service by its name
getServiceMethod ( string $methodName ) : Method | null Returns the method
getServiceName ( string $methodName ) : string Returns the service name associated to the method/operation name in order to gather them in one service class
getServices ( ) : Service
getSoapClient ( ) : GeneratorSoapClient
getStruct ( string $structName ) : Struct | null Gets the struct by its name
getStructs ( ) : Struct
getUrlContent ( string $url ) : string
getWsdl ( ) : Wsdl | null Gets the WSDL
setOptionAddComments ( array $addComments ) : Generator Sets the optionAddComments value
setOptionArraysFolder ( string $optionArraysFolder ) : Generator Sets the optionArraysFolder value
setOptionBasicLogin ( string $optionBasicLogin ) : Generator Sets the optionBasicLogin value
setOptionBasicPassword ( string $optionBasicPassword ) : Generator Sets the optionBasicPassword value
setOptionCategory ( string $category ) : Generator Sets the optionCategory value
setOptionComposerName ( string $optionComposerName ) : Generator Sets the optionComposerName value
setOptionDestination ( string $optionDestination ) : Generator Sets the optionDestination value
setOptionEnumsFolder ( string $optionEnumsFolder ) : Generator Sets the optionEnumsFolder value
setOptionGatherMethods ( string $gatherMethods ) : Generator Sets the optionGatherMethods value
setOptionGenerateTutorialFile ( boolean $generateTutorialFile ) : Generator Sets the optionGenerateTutorialFile value
setOptionGenericConstantsNames ( boolean $genericConstantsNames ) : Generator Sets the optionGenericConstantsNames value
setOptionNamespacePrefix ( string $namespace ) : Generator Sets the optionGenerateTutorialFile value
setOptionOrigin ( string $optionOrigin ) : Generator Sets the optionOrigin value
setOptionPrefix ( string $optionPrefix ) : Generator Sets the package name prefix
setOptionProxyHost ( string $optionProxyHost ) : Generator Sets the optionProxyHost value
setOptionProxyLogin ( string $optionProxyLogin ) : Generator Sets the optionProxyLogin value
setOptionProxyPassword ( string $optionProxyPassword ) : Generator Sets the optionProxyPassword value
setOptionProxyPort ( string $optionProxyPort ) : Generator Sets the optionProxyPort value
setOptionServicesFolder ( string $optionServicesFolder ) : Generator Sets the optionServicesFolder value
setOptionSoapClientClass ( string $soapClientClass ) : Generator Sets the optionSoapClientClass value
setOptionSoapOptions ( array $optionSoapOptions ) : Generator Sets the optionSoapOptions value
setOptionStandalone ( boolean $standalone ) : Generator Sets the optionStandalone value
setOptionStructArrayClass ( string $structArrayClass ) : Generator Sets the optionStructArrayClass value
setOptionStructClass ( string $structClass ) : Generator Sets the optionStructClass value
setOptionStructsFolder ( string $optionStructsFolder ) : Generator Sets the optionStructsFolder value
setOptionSuffix ( string $optionSuffix ) : Generator Sets the package name suffix
setOptionValidation ( boolean $validation ) : Generator Sets the optionValidation value

보호된 메소드들

메소드 설명
doGenerate ( ) : Generator
doParse ( ) : Generator
doSanityChecks ( ) : Generator
initContainers ( ) : Generator
initDirectory ( ) : Generator
initFiles ( ) : Generator
initParsers ( ) : Generator
initSoapClient ( ) : Generator
initWsdl ( ) : Generator
initialize ( ) : Generator
setOptions ( GeneratorOptions $options = null ) : Generator
setWsdl ( Wsdl $wsdl ) : Generator Sets the WSDLs

비공개 메소드들

메소드 설명
getGather ( AbstractModel $model ) : string Gets gather name class

메소드 상세

__construct() 공개 메소드

Constructor
public __construct ( GeneratorOptions $options )
$options WsdlToPhp\PackageGenerator\ConfigurationReader\GeneratorOptions

addSchemaToWsdl() 공개 메소드

Adds Wsdl location
public addSchemaToWsdl ( Wsdl $wsdl, string $schemaLocation ) : Generator
$wsdl WsdlToPhp\PackageGenerator\Model\Wsdl
$schemaLocation string
리턴 Generator

doGenerate() 보호된 메소드

protected doGenerate ( ) : Generator
리턴 Generator

doParse() 보호된 메소드

protected doParse ( ) : Generator
리턴 Generator

doSanityChecks() 보호된 메소드

protected doSanityChecks ( ) : Generator
리턴 Generator

generatePackage() 공개 메소드

Generates all classes based on options
public generatePackage ( ) : Generator
리턴 Generator

getFiles() 공개 메소드

public getFiles ( ) : GeneratorFiles
리턴 GeneratorFiles

getOptionAddComments() 공개 메소드

Gets the optionAddComments value
public getOptionAddComments ( ) : array
리턴 array

getOptionArraysFolder() 공개 메소드

Gets the optionArraysFolder value
public getOptionArraysFolder ( ) : string
리턴 string

getOptionBasicLogin() 공개 메소드

Gets the optionBasicLogin value
public getOptionBasicLogin ( ) : string
리턴 string

getOptionBasicPassword() 공개 메소드

Gets the optionBasicPassword value
public getOptionBasicPassword ( ) : string
리턴 string

getOptionCategory() 공개 메소드

Sets the optionCategory value
public getOptionCategory ( ) : string
리턴 string

getOptionComposerName() 공개 메소드

Gets the optionComposerName value
public getOptionComposerName ( ) : string
리턴 string

getOptionDestination() 공개 메소드

Gets the optionDestination value
public getOptionDestination ( ) : string
리턴 string

getOptionEnumsFolder() 공개 메소드

Gets the optionEnumsFolder value
public getOptionEnumsFolder ( ) : string
리턴 string

getOptionGatherMethods() 공개 메소드

Sets the optionGatherMethods value
public getOptionGatherMethods ( ) : string
리턴 string

getOptionGenerateTutorialFile() 공개 메소드

Gets the optionGenerateTutorialFile value

getOptionGenericConstantsNames() 공개 메소드

Gets the optionGenericConstantsNames value

getOptionNamespacePrefix() 공개 메소드

Gets the optionNamespacePrefix value
public getOptionNamespacePrefix ( ) : string
리턴 string

getOptionOrigin() 공개 메소드

Gets the optionOrigin value
public getOptionOrigin ( ) : string
리턴 string

getOptionPrefix() 공개 메소드

Gets the package name prefix
public getOptionPrefix ( boolean $ucFirst = true ) : string
$ucFirst boolean ucfirst package name prefix or not
리턴 string

getOptionProxyHost() 공개 메소드

Gets the optionProxyHost value
public getOptionProxyHost ( ) : string
리턴 string

getOptionProxyLogin() 공개 메소드

Gets the optionProxyLogin value
public getOptionProxyLogin ( ) : string
리턴 string

getOptionProxyPassword() 공개 메소드

Gets the optionProxyPassword value
public getOptionProxyPassword ( ) : string
리턴 string

getOptionProxyPort() 공개 메소드

Gets the optionProxyPort value
public getOptionProxyPort ( ) : string
리턴 string

getOptionServicesFolder() 공개 메소드

Gets the optionServicesFolder value
public getOptionServicesFolder ( ) : string
리턴 string

getOptionSoapClientClass() 공개 메소드

Gets the optionSoapClientClass value
public getOptionSoapClientClass ( ) : string
리턴 string

getOptionSoapOptions() 공개 메소드

Gets the optionSoapOptions value
public getOptionSoapOptions ( ) : string
리턴 string

getOptionStandalone() 공개 메소드

Gets the optionStandalone value
public getOptionStandalone ( ) : boolean
리턴 boolean

getOptionStructArrayClass() 공개 메소드

Gets the optionStructArrayClass value

getOptionStructClass() 공개 메소드

Gets the optionStructClass value
public getOptionStructClass ( ) : string
리턴 string

getOptionStructsFolder() 공개 메소드

Gets the optionStructsFolder value
public getOptionStructsFolder ( ) : string
리턴 string

getOptionSuffix() 공개 메소드

Gets the package name suffix
public getOptionSuffix ( boolean $ucFirst = true ) : string
$ucFirst boolean ucfirst package name suffix or not
리턴 string

getOptionValidation() 공개 메소드

Gets the optionValidation value
public getOptionValidation ( ) : boolean
리턴 boolean

getOptions() 공개 메소드

public getOptions ( ) : GeneratorOptions
리턴 WsdlToPhp\PackageGenerator\ConfigurationReader\GeneratorOptions

getParsers() 공개 메소드

public getParsers ( ) : GeneratorParsers
리턴 GeneratorParsers

getService() 공개 메소드

Gets a service by its name
public getService ( string $serviceName ) : Service | null
$serviceName string the service name
리턴 WsdlToPhp\PackageGenerator\Model\Service | null

getServiceMethod() 공개 메소드

Returns the method
public getServiceMethod ( string $methodName ) : Method | null
$methodName string the original function name
리턴 WsdlToPhp\PackageGenerator\Model\Method | null

getServiceName() 공개 메소드

Returns the service name associated to the method/operation name in order to gather them in one service class
public getServiceName ( string $methodName ) : string
$methodName string original operation/method name
리턴 string

getServices() 공개 메소드

public getServices ( ) : Service
리턴 WsdlToPhp\PackageGenerator\Container\Model\Service

getSoapClient() 공개 메소드

public getSoapClient ( ) : GeneratorSoapClient
리턴 GeneratorSoapClient

getStruct() 공개 메소드

Gets the struct by its name
public getStruct ( string $structName ) : Struct | null
$structName string the original struct name
리턴 WsdlToPhp\PackageGenerator\Model\Struct | null

getStructs() 공개 메소드

public getStructs ( ) : Struct
리턴 WsdlToPhp\PackageGenerator\Container\Model\Struct

getUrlContent() 공개 메소드

public getUrlContent ( string $url ) : string
$url string
리턴 string

getWsdl() 공개 메소드

Gets the WSDL
public getWsdl ( ) : Wsdl | null
리턴 WsdlToPhp\PackageGenerator\Model\Wsdl | null

initContainers() 보호된 메소드

protected initContainers ( ) : Generator
리턴 Generator

initDirectory() 보호된 메소드

protected initDirectory ( ) : Generator
리턴 Generator

initFiles() 보호된 메소드

protected initFiles ( ) : Generator
리턴 Generator

initParsers() 보호된 메소드

protected initParsers ( ) : Generator
리턴 Generator

initSoapClient() 보호된 메소드

protected initSoapClient ( ) : Generator
리턴 Generator

initWsdl() 보호된 메소드

protected initWsdl ( ) : Generator
리턴 Generator

initialize() 보호된 메소드

protected initialize ( ) : Generator
리턴 Generator

setOptionAddComments() 공개 메소드

Sets the optionAddComments value
public setOptionAddComments ( array $addComments ) : Generator
$addComments array
리턴 Generator

setOptionArraysFolder() 공개 메소드

Sets the optionArraysFolder value
public setOptionArraysFolder ( string $optionArraysFolder ) : Generator
$optionArraysFolder string
리턴 Generator

setOptionBasicLogin() 공개 메소드

Sets the optionBasicLogin value
public setOptionBasicLogin ( string $optionBasicLogin ) : Generator
$optionBasicLogin string
리턴 Generator

setOptionBasicPassword() 공개 메소드

Sets the optionBasicPassword value
public setOptionBasicPassword ( string $optionBasicPassword ) : Generator
$optionBasicPassword string
리턴 Generator

setOptionCategory() 공개 메소드

Sets the optionCategory value
public setOptionCategory ( string $category ) : Generator
$category string
리턴 Generator

setOptionComposerName() 공개 메소드

Sets the optionComposerName value
public setOptionComposerName ( string $optionComposerName ) : Generator
$optionComposerName string
리턴 Generator

setOptionDestination() 공개 메소드

Sets the optionDestination value
public setOptionDestination ( string $optionDestination ) : Generator
$optionDestination string
리턴 Generator

setOptionEnumsFolder() 공개 메소드

Sets the optionEnumsFolder value
public setOptionEnumsFolder ( string $optionEnumsFolder ) : Generator
$optionEnumsFolder string
리턴 Generator

setOptionGatherMethods() 공개 메소드

Sets the optionGatherMethods value
public setOptionGatherMethods ( string $gatherMethods ) : Generator
$gatherMethods string
리턴 Generator

setOptionGenerateTutorialFile() 공개 메소드

Sets the optionGenerateTutorialFile value
public setOptionGenerateTutorialFile ( boolean $generateTutorialFile ) : Generator
$generateTutorialFile boolean
리턴 Generator

setOptionGenericConstantsNames() 공개 메소드

Sets the optionGenericConstantsNames value
public setOptionGenericConstantsNames ( boolean $genericConstantsNames ) : Generator
$genericConstantsNames boolean
리턴 Generator

setOptionNamespacePrefix() 공개 메소드

Sets the optionGenerateTutorialFile value
public setOptionNamespacePrefix ( string $namespace ) : Generator
$namespace string
리턴 Generator

setOptionOrigin() 공개 메소드

Sets the optionOrigin value
public setOptionOrigin ( string $optionOrigin ) : Generator
$optionOrigin string
리턴 Generator

setOptionPrefix() 공개 메소드

Sets the package name prefix
public setOptionPrefix ( string $optionPrefix ) : Generator
$optionPrefix string
리턴 Generator

setOptionProxyHost() 공개 메소드

Sets the optionProxyHost value
public setOptionProxyHost ( string $optionProxyHost ) : Generator
$optionProxyHost string
리턴 Generator

setOptionProxyLogin() 공개 메소드

Sets the optionProxyLogin value
public setOptionProxyLogin ( string $optionProxyLogin ) : Generator
$optionProxyLogin string
리턴 Generator

setOptionProxyPassword() 공개 메소드

Sets the optionProxyPassword value
public setOptionProxyPassword ( string $optionProxyPassword ) : Generator
$optionProxyPassword string
리턴 Generator

setOptionProxyPort() 공개 메소드

Sets the optionProxyPort value
public setOptionProxyPort ( string $optionProxyPort ) : Generator
$optionProxyPort string
리턴 Generator

setOptionServicesFolder() 공개 메소드

Sets the optionServicesFolder value
public setOptionServicesFolder ( string $optionServicesFolder ) : Generator
$optionServicesFolder string
리턴 Generator

setOptionSoapClientClass() 공개 메소드

Sets the optionSoapClientClass value
public setOptionSoapClientClass ( string $soapClientClass ) : Generator
$soapClientClass string
리턴 Generator

setOptionSoapOptions() 공개 메소드

Sets the optionSoapOptions value
public setOptionSoapOptions ( array $optionSoapOptions ) : Generator
$optionSoapOptions array
리턴 Generator

setOptionStandalone() 공개 메소드

Sets the optionStandalone value
public setOptionStandalone ( boolean $standalone ) : Generator
$standalone boolean
리턴 Generator

setOptionStructArrayClass() 공개 메소드

Sets the optionStructArrayClass value
public setOptionStructArrayClass ( string $structArrayClass ) : Generator
$structArrayClass string
리턴 Generator

setOptionStructClass() 공개 메소드

Sets the optionStructClass value
public setOptionStructClass ( string $structClass ) : Generator
$structClass string
리턴 Generator

setOptionStructsFolder() 공개 메소드

Sets the optionStructsFolder value
public setOptionStructsFolder ( string $optionStructsFolder ) : Generator
$optionStructsFolder string
리턴 Generator

setOptionSuffix() 공개 메소드

Sets the package name suffix
public setOptionSuffix ( string $optionSuffix ) : Generator
$optionSuffix string
리턴 Generator

setOptionValidation() 공개 메소드

Sets the optionValidation value
public setOptionValidation ( boolean $validation ) : Generator
$validation boolean
리턴 Generator

setOptions() 보호된 메소드

protected setOptions ( GeneratorOptions $options = null ) : Generator
$options WsdlToPhp\PackageGenerator\ConfigurationReader\GeneratorOptions
리턴 Generator

setWsdl() 보호된 메소드

Sets the WSDLs
protected setWsdl ( Wsdl $wsdl ) : Generator
$wsdl WsdlToPhp\PackageGenerator\Model\Wsdl
리턴 Generator