class Struct extends AbstractModel (View source)

Constants

PROPERTY_NAME

Properties

protected Generator $generator from AbstractGeneratorAware
protected array $objects from AbstractObjectContainer
protected int $offset from AbstractObjectContainer
protected array $virtualObjects Only for virtually-considered objects (in order to avoid duplucations in objects property)

Methods

__construct(Generator $generator)

No description

bool
offsetExists(int $offset)

No description

mixed
offsetGet(int $offset)

No description

offsetSet(int $offset, mixed $value)

No description

void
offsetUnset(int $offset)

No description

mixed
current()

No description

void
next()

No description

int
key()

No description

bool
valid()

No description

void
rewind()

No description

int
count()

No description

string
objectClass()

No description

string
objectProperty()

No description

beforeObjectIsStored(mixed $object)

This method is called before the object has been stored

string
getObjectKey(object $object)

No description

add(mixed $object)

By overriding this method, we ensure that each time a new object is stored, it is stored with our new key if the inheritance is defined.

mixed
get(string $value)

No description

array
jsonSerialize()

No description

Struct|null
getStructByName(string $name)

No description

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

No description

addVirtualStruct(string $structName, string $structType = '')

Adds a virtual struct

addStruct(string $structName, bool $isStruct = true, string $structType = '')

Adds type to structs

addStructWithAttribute(string $structName, string $attributeName, string $attributeType)

Adds type to structs and its attribute

addUnionStruct(string $structName, string[] $types)

Adds a union struct

mixed
getVirtual(string $value)

No description

mixed
getByType(string $value, string $type)

No description

string
getObjectKeyWithType($object, $type)

No description

string
getObjectKeyWithVirtual($object)

No description

string
getTypeKey($name, $type)

The key must not conflict with possible key values

string
getVirtualKey($name)

The key must not conflict with possible key values

Details

__construct(Generator $generator)

Parameters

Generator $generator

protected AbstractGeneratorAware setGenerator(Generator $generator)

Parameters

Generator $generator

Return Value

AbstractGeneratorAware

Generator getGenerator()

Return Value

Generator

bool offsetExists(int $offset)

Parameters

int $offset

Return Value

bool

mixed offsetGet(int $offset)

Parameters

int $offset

Return Value

mixed

AbstractObjectContainer offsetSet(int $offset, mixed $value)

Parameters

int $offset
mixed $value

Return Value

AbstractObjectContainer

void offsetUnset(int $offset)

Parameters

int $offset

Return Value

void

mixed current()

Return Value

mixed

void next()

Return Value

void

int key()

Return Value

int

bool valid()

Return Value

bool

void rewind()

Return Value

void

int count()

Return Value

int

protected string objectClass()

Return Value

string

See also

\WsdlToPhp\PackageGenerator\Container\Model\Model::objectClass()

protected string objectProperty()

Return Value

string

See also

\WsdlToPhp\PackageGenerator\Container\AbstractObjectContainer::objectProperty()

protected beforeObjectIsStored(mixed $object)

This method is called before the object has been stored

Parameters

mixed $object

Exceptions

InvalidArgumentException

protected string getObjectKey(object $object)

Parameters

object $object

Return Value

string

Exceptions

InvalidArgumentException

AbstractObjectContainer add(mixed $object)

By overriding this method, we ensure that each time a new object is stored, it is stored with our new key if the inheritance is defined.

Parameters

mixed $object

Return Value

AbstractObjectContainer

mixed get(string $value)

Parameters

string $value

Return Value

mixed

See also

\WsdlToPhp\PackageGenerator\Model\AbstractModel::get()

array jsonSerialize()

Return Value

array

Struct|null getStructByName(string $name)

Parameters

string $name

Return Value

Struct|null

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

Parameters

string $name
string $type

Return Value

Struct|null

Struct addVirtualStruct(string $structName, string $structType = '')

Adds a virtual struct

Parameters

string $structName the original struct name
string $structType the original struct type

Return Value

Struct

Struct addStruct(string $structName, bool $isStruct = true, string $structType = '')

Adds type to structs

Parameters

string $structName the original struct name
bool $isStruct whether the Struct has to be generated or not
string $structType the original struct type

Return Value

Struct

Struct addStructWithAttribute(string $structName, string $attributeName, string $attributeType)

Adds type to structs and its attribute

Parameters

string $structName the original struct name
string $attributeName the attribute name
string $attributeType the attribute type

Return Value

Struct

Struct addUnionStruct(string $structName, string[] $types)

Adds a union struct

Parameters

string $structName
string[] $types

Return Value

Struct

mixed getVirtual(string $value)

Parameters

string $value

Return Value

mixed

Exceptions

InvalidArgumentException

See also

parent::get()

mixed getByType(string $value, string $type)

Parameters

string $value
string $type

Return Value

mixed

Exceptions

InvalidArgumentException

See also

parent::get()

string getObjectKeyWithType($object, $type)

Parameters

$object
$type

Return Value

string

string getObjectKeyWithVirtual($object)

Parameters

$object

Return Value

string

string getTypeKey($name, $type)

The key must not conflict with possible key values

Parameters

$name
$type

Return Value

string

string getVirtualKey($name)

The key must not conflict with possible key values

Parameters

$name

Return Value

string