PHP Class WsdlToPhp\PackageGenerator\Generator\Generator

ファイルを表示 Open project: wsdltophp/packagegenerator Class Usage Examples

Public Methods

Method Description
__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

Protected Methods

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

Private Methods

Method Description
getGather ( AbstractModel $model ) : string Gets gather name class

Method Details

__construct() public method

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

addSchemaToWsdl() public method

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

doGenerate() protected method

protected doGenerate ( ) : Generator
return Generator

doParse() protected method

protected doParse ( ) : Generator
return Generator

doSanityChecks() protected method

protected doSanityChecks ( ) : Generator
return Generator

generatePackage() public method

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

getFiles() public method

public getFiles ( ) : GeneratorFiles
return GeneratorFiles

getOptionAddComments() public method

Gets the optionAddComments value
public getOptionAddComments ( ) : array
return array

getOptionArraysFolder() public method

Gets the optionArraysFolder value
public getOptionArraysFolder ( ) : string
return string

getOptionBasicLogin() public method

Gets the optionBasicLogin value
public getOptionBasicLogin ( ) : string
return string

getOptionBasicPassword() public method

Gets the optionBasicPassword value
public getOptionBasicPassword ( ) : string
return string

getOptionCategory() public method

Sets the optionCategory value
public getOptionCategory ( ) : string
return string

getOptionComposerName() public method

Gets the optionComposerName value
public getOptionComposerName ( ) : string
return string

getOptionDestination() public method

Gets the optionDestination value
public getOptionDestination ( ) : string
return string

getOptionEnumsFolder() public method

Gets the optionEnumsFolder value
public getOptionEnumsFolder ( ) : string
return string

getOptionGatherMethods() public method

Sets the optionGatherMethods value
public getOptionGatherMethods ( ) : string
return string

getOptionGenerateTutorialFile() public method

Gets the optionGenerateTutorialFile value

getOptionGenericConstantsNames() public method

Gets the optionGenericConstantsNames value

getOptionNamespacePrefix() public method

Gets the optionNamespacePrefix value
public getOptionNamespacePrefix ( ) : string
return string

getOptionOrigin() public method

Gets the optionOrigin value
public getOptionOrigin ( ) : string
return string

getOptionPrefix() public method

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

getOptionProxyHost() public method

Gets the optionProxyHost value
public getOptionProxyHost ( ) : string
return string

getOptionProxyLogin() public method

Gets the optionProxyLogin value
public getOptionProxyLogin ( ) : string
return string

getOptionProxyPassword() public method

Gets the optionProxyPassword value
public getOptionProxyPassword ( ) : string
return string

getOptionProxyPort() public method

Gets the optionProxyPort value
public getOptionProxyPort ( ) : string
return string

getOptionServicesFolder() public method

Gets the optionServicesFolder value
public getOptionServicesFolder ( ) : string
return string

getOptionSoapClientClass() public method

Gets the optionSoapClientClass value
public getOptionSoapClientClass ( ) : string
return string

getOptionSoapOptions() public method

Gets the optionSoapOptions value
public getOptionSoapOptions ( ) : string
return string

getOptionStandalone() public method

Gets the optionStandalone value
public getOptionStandalone ( ) : boolean
return boolean

getOptionStructArrayClass() public method

Gets the optionStructArrayClass value

getOptionStructClass() public method

Gets the optionStructClass value
public getOptionStructClass ( ) : string
return string

getOptionStructsFolder() public method

Gets the optionStructsFolder value
public getOptionStructsFolder ( ) : string
return string

getOptionSuffix() public method

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

getOptionValidation() public method

Gets the optionValidation value
public getOptionValidation ( ) : boolean
return boolean

getOptions() public method

public getOptions ( ) : GeneratorOptions
return WsdlToPhp\PackageGenerator\ConfigurationReader\GeneratorOptions

getParsers() public method

public getParsers ( ) : GeneratorParsers
return GeneratorParsers

getService() public method

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

getServiceMethod() public method

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

getServiceName() public method

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

getServices() public method

public getServices ( ) : Service
return WsdlToPhp\PackageGenerator\Container\Model\Service

getSoapClient() public method

public getSoapClient ( ) : GeneratorSoapClient
return GeneratorSoapClient

getStruct() public method

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

getStructs() public method

public getStructs ( ) : Struct
return WsdlToPhp\PackageGenerator\Container\Model\Struct

getUrlContent() public method

public getUrlContent ( string $url ) : string
$url string
return string

getWsdl() public method

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

initContainers() protected method

protected initContainers ( ) : Generator
return Generator

initDirectory() protected method

protected initDirectory ( ) : Generator
return Generator

initFiles() protected method

protected initFiles ( ) : Generator
return Generator

initParsers() protected method

protected initParsers ( ) : Generator
return Generator

initSoapClient() protected method

protected initSoapClient ( ) : Generator
return Generator

initWsdl() protected method

protected initWsdl ( ) : Generator
return Generator

initialize() protected method

protected initialize ( ) : Generator
return Generator

setOptionAddComments() public method

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

setOptionArraysFolder() public method

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

setOptionBasicLogin() public method

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

setOptionBasicPassword() public method

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

setOptionCategory() public method

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

setOptionComposerName() public method

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

setOptionDestination() public method

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

setOptionEnumsFolder() public method

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

setOptionGatherMethods() public method

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

setOptionGenerateTutorialFile() public method

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

setOptionGenericConstantsNames() public method

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

setOptionNamespacePrefix() public method

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

setOptionOrigin() public method

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

setOptionPrefix() public method

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

setOptionProxyHost() public method

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

setOptionProxyLogin() public method

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

setOptionProxyPassword() public method

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

setOptionProxyPort() public method

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

setOptionServicesFolder() public method

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

setOptionSoapClientClass() public method

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

setOptionSoapOptions() public method

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

setOptionStandalone() public method

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

setOptionStructArrayClass() public method

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

setOptionStructClass() public method

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

setOptionStructsFolder() public method

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

setOptionSuffix() public method

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

setOptionValidation() public method

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

setOptions() protected method

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

setWsdl() protected method

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