class TagImport extends AbstractTagImportParser (View source)

Properties

protected Generator $generator from AbstractParser
protected AbstractTag[] $tags from AbstractParser
protected array $parsedWsdls List of Wsdl parsed for the current tag from AbstractParser
protected array $parsedSchemas List of Schema parsed for the current tag from AbstractParser

Methods

__construct(Generator $generator)

No description

getGenerator()

No description

string
getName()

No description

void
parse()

The method takes care of looping among WSDLS as much time as it is needed

parseWsdl(Wsdl $wsdl, Schema $schema = null)

No description

parseSchema(Wsdl $wsdl, Schema $schema)

The goal of this method is to ensure that each schema is parsed by both TagInclude and TagImport in case of one of the two does not find tags that matches its tag name.

string
parsingTag()

No description

setTags(array $tags)

No description

getTags()

No description

setWsdlAsParsed(Wsdl $wsdl)

No description

boolean
isWsdlParsed(Wsdl $wsdl)

No description

setSchemaAsParsed(Wsdl $wsdl, Schema $schema)

No description

boolean
isSchemaParsed(Wsdl $wsdl, Schema $schema)

No description

Struct|Method|null
getModel(AbstractTag $tag, string $type = '')

Return the model on which the method will be called

null|Struct
getStructByName(string $name)

No description

null|Struct
getStructByNameAndType(string $name, string $type)

No description

null|Method
getMethodByName(string $name)

No description

parseTagAttributes(AbstractTag $tag, AbstractModel $model = null, StructAttribute $structAttribute = null)

No description

array|null
getParseTagAttributeMethod(string $tagName)

No description

parseTagAttributeType(AttributeHandler $tagAttribute, AbstractModel $model, StructAttribute $structAttribute = null)

No description

parseTagAttributeName()

Avoid this attribute to be added as meta

parseTagAttributeAbstract(AttributeHandler $tagAttribute, AbstractModel $model)

No description

parseTagAttributeValue(AttributeHandler $tagAttribute, AbstractModel $model)

Enumeration does not need its own value as meta information, it's like the name for struct attribute

string
getLocation(Wsdl $wsdl, Schema $schema = null)

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

See also

\WsdlToPhp\PackageGenerator\Parser\AbstractParser::getName()

final void parse()

The method takes care of looping among WSDLS as much time as it is needed

Return Value

void

See also

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

protected parseWsdl(Wsdl $wsdl, Schema $schema = null)

Parameters

Wsdl $wsdl
Schema $schema

See also

\WsdlToPhp\PackageGenerator\Parser\Wsdl\AbstractParser::parseWsdl()

protected parseSchema(Wsdl $wsdl, Schema $schema)

The goal of this method is to ensure that each schema is parsed by both TagInclude and TagImport in case of one of the two does not find tags that matches its tag name.

As the GeneratorParsers loads the include/import tags parses in a certain order, it can occur that import tags might be found after the import tag parser has been launched and vice versa.

Parameters

Wsdl $wsdl
Schema $schema

See also

\WsdlToPhp\PackageGenerator\Parser\Wsdl\AbstractParser::parseSchema()

protected string parsingTag()

Return Value

string

See also

\WsdlToPhp\PackageGenerator\Parser\Wsdl\AbstractParser::parsingTag()

protected AbstractParser setTags(array $tags)

Parameters

array $tags

Return Value

AbstractParser

AbstractTag[] getTags()

Return Value

AbstractTag[]

protected AbstractParser setWsdlAsParsed(Wsdl $wsdl)

Parameters

Wsdl $wsdl

Return Value

AbstractParser

boolean isWsdlParsed(Wsdl $wsdl)

Parameters

Wsdl $wsdl

Return Value

boolean

protected AbstractParser setSchemaAsParsed(Wsdl $wsdl, Schema $schema)

Parameters

Wsdl $wsdl
Schema $schema

Return Value

AbstractParser

boolean isSchemaParsed(Wsdl $wsdl, Schema $schema)

Parameters

Wsdl $wsdl
Schema $schema

Return Value

boolean

protected Struct|Method|null getModel(AbstractTag $tag, string $type = '')

Return the model on which the method will be called

Parameters

AbstractTag $tag
string $type can be passed to specify the Struct type (inheritance)

Return Value

Struct|Method|null

protected null|Struct getStructByName(string $name)

Parameters

string $name

Return Value

null|Struct

protected null|Struct getStructByNameAndType(string $name, string $type)

Parameters

string $name
string $type

Return Value

null|Struct

protected null|Method getMethodByName(string $name)

Parameters

string $name

Return Value

null|Method

protected parseTagAttributes(AbstractTag $tag, AbstractModel $model = null, StructAttribute $structAttribute = null)

Parameters

AbstractTag $tag
AbstractModel $model
StructAttribute $structAttribute

protected array|null getParseTagAttributeMethod(string $tagName)

Parameters

string $tagName

Return Value

array|null

protected parseTagAttributeType(AttributeHandler $tagAttribute, AbstractModel $model, StructAttribute $structAttribute = null)

Parameters

AttributeHandler $tagAttribute
AbstractModel $model
StructAttribute $structAttribute

protected parseTagAttributeName()

Avoid this attribute to be added as meta

protected parseTagAttributeAbstract(AttributeHandler $tagAttribute, AbstractModel $model)

Parameters

AttributeHandler $tagAttribute
AbstractModel $model

protected parseTagAttributeValue(AttributeHandler $tagAttribute, AbstractModel $model)

Enumeration does not need its own value as meta information, it's like the name for struct attribute

Parameters

AttributeHandler $tagAttribute
AbstractModel $model

protected string getLocation(Wsdl $wsdl, Schema $schema = null)

Parameters

Wsdl $wsdl
Schema $schema

Return Value

string