class TagRestriction extends Tag (View source)

Constants

MAX_DEEP

ATTRIBUTE_BASE

Methods

null|AbstractNodeHandler|AbstractElementHandler|AbstractAttributeHandler|AbstractTag
getSuitableParent(bool $checkName = true, array $additionalTags = [], int $maxDeep = self::MAX_DEEP, bool $strict = false)

This method aims to get the parent element that matches a valid Wsdl element (aka struct)

string[]
getSuitableParentTags(array $additionalTags = [])

Suitable tags as parent

getStrictParent(string $name, bool $checkName = false)

No description

bool
hasAttributeName()

No description

bool
hasAttributeRef()

No description

string
getAttributeName()

No description

string
getAttributeRef()

No description

boolean
hasAttributeValue()

No description

mixed
getValueAttributeValue(bool $withNamespace = false, bool $withinItsType = true, string $asType = null)

No description

getDomDocumentHandler()

No description

getChildrenByName(string $name)

No description

bool
hasRestrictionChild()

No description

from Tag
getFirstRestrictionChild()

No description

from Tag
bool
isTheParent(AbstractTag $tag)

Checks if the given tag is the same direct parent of this current tag

from Tag
boolean
isEnumeration()

No description

getEnumerations()

No description

string
getAttributeBase()

No description

bool
hasAttributeBase()

No description

bool
hasUnionParent()

Checks wether this element is contained by an union parent or not

Details

null|AbstractNodeHandler|AbstractElementHandler|AbstractAttributeHandler|AbstractTag getSuitableParent(bool $checkName = true, array $additionalTags = [], int $maxDeep = self::MAX_DEEP, bool $strict = false)

This method aims to get the parent element that matches a valid Wsdl element (aka struct)

Parameters

bool $checkName whether to validate the attribute named "name" or not
array $additionalTags
int $maxDeep
bool $strict used by overridden methods to avoid infinite loop

Return Value

null|AbstractNodeHandler|AbstractElementHandler|AbstractAttributeHandler|AbstractTag

protected string[] getSuitableParentTags(array $additionalTags = [])

Suitable tags as parent

Parameters

array $additionalTags

Return Value

string[]

protected AbstractTag|null getStrictParent(string $name, bool $checkName = false)

Parameters

string $name
bool $checkName

Return Value

AbstractTag|null

bool hasAttributeName()

Return Value

bool

bool hasAttributeRef()

Return Value

bool

string getAttributeName()

Return Value

string

string getAttributeRef()

Return Value

string

boolean hasAttributeValue()

Return Value

boolean

mixed getValueAttributeValue(bool $withNamespace = false, bool $withinItsType = true, string $asType = null)

Parameters

bool $withNamespace
bool $withinItsType
string $asType

Return Value

mixed

Wsdl|Schema getDomDocumentHandler()

Return Value

Wsdl|Schema

AbstractTag[] getChildrenByName(string $name)

Parameters

string $name

Return Value

AbstractTag[]

See also

\WsdlToPhp\DomHandler\AbstractElementHandler::getChildrenByName()

in Tag at line 14
bool hasRestrictionChild()

Return Value

bool

in Tag at line 22
TagRestriction|null getFirstRestrictionChild()

Return Value

TagRestriction|null

in Tag at line 32
bool isTheParent(AbstractTag $tag)

Checks if the given tag is the same direct parent of this current tag

Parameters

AbstractTag $tag

Return Value

bool

boolean isEnumeration()

Return Value

boolean

TagEnumeration[] getEnumerations()

Return Value

TagEnumeration[]

string getAttributeBase()

Return Value

string

bool hasAttributeBase()

Return Value

bool

bool hasUnionParent()

Checks wether this element is contained by an union parent or not

Return Value

bool