class Structs extends AbstractParser (View source)

Constants

STRUCT_DECLARATION

UNION_DECLARATION

ANY_XML_DECLARATION

ANY_XML_TYPE

Properties

protected Generator $generator from AbstractGeneratorAware
protected string[] $definedStructs

Methods

__construct(Generator $generator)

No description

string
getName()

No description

void
parse()

Parses the SoapClient types

parseType(string $type)

No description

parseComplexStruct(array $typeDef)

No description

parseUnionStruct(array $typeDef)

union types are passed such as ",dateTime,time" or ",PMS_ResStatusType,TransactionActionType,UpperCaseAlphaLength1to2"

static string
cleanType(string $type)

Remove useless break line, tabs Remove curly braces Remove brackets Adds space before semicolon to parse it Remove duplicated spaces

boolean
isStructDefined(string $type)

No description

structHasBeenDefined(string $type)

No description

static string
typeSignature(string $type)

No description

Details

__construct(Generator $generator)

Parameters

Generator $generator

protected AbstractGeneratorAware setGenerator(Generator $generator)

Parameters

Generator $generator

Return Value

AbstractGeneratorAware

Generator getGenerator()

Return Value

Generator

string getName()

Return Value

string

void parse()

Parses the SoapClient types

Return Value

void

See also

\WsdlToPhp\PackageGenerator\Parser\ParserInterface::parse()

protected parseType(string $type)

Parameters

string $type

protected parseComplexStruct(array $typeDef)

Parameters

array $typeDef

protected parseUnionStruct(array $typeDef)

union types are passed such as ",dateTime,time" or ",PMS_ResStatusType,TransactionActionType,UpperCaseAlphaLength1to2"

Parameters

array $typeDef

static protected string cleanType(string $type)

Remove useless break line, tabs Remove curly braces Remove brackets Adds space before semicolon to parse it Remove duplicated spaces

Parameters

string $type

Return Value

string

protected boolean isStructDefined(string $type)

Parameters

string $type

Return Value

boolean

protected Structs structHasBeenDefined(string $type)

Parameters

string $type

Return Value

Structs

static protected string typeSignature(string $type)

Parameters

string $type

Return Value

string