1 | <?php |
||
8 | class Struct extends AbstractModel |
||
9 | { |
||
10 | /** |
||
11 | * @see \WsdlToPhp\PackageGenerator\Container\Model\Model::objectClass() |
||
12 | * @return string |
||
13 | */ |
||
14 | 456 | protected function objectClass() |
|
18 | /** |
||
19 | * @param string $name |
||
20 | * @return Model|null |
||
21 | */ |
||
22 | 464 | public function getStructByName($name) |
|
26 | /** |
||
27 | * Adds a virtual struct |
||
28 | * @param string $structName the original struct name |
||
29 | * @return Struct |
||
30 | */ |
||
31 | public function addVirtualStruct($structName) |
||
35 | /** |
||
36 | * Adds type to structs |
||
37 | * @param string $structName the original struct name |
||
38 | * @param bool $isStruct whether the Struct has to be generated or not |
||
39 | * @return Struct |
||
40 | */ |
||
41 | public function addStruct($structName, $isStruct = true) |
||
48 | 456 | /** |
|
49 | * Adds type to structs and its attribute |
||
50 | * @param string $structName the original struct name |
||
51 | * @param string $attributeName the attribute name |
||
52 | * @param string $attributeType the attribute type |
||
53 | * @return Struct |
||
54 | */ |
||
55 | public function addStructWithAttribute($structName, $attributeName, $attributeType) |
||
63 | 452 | /** |
|
64 | 452 | * Adds a union struct |
|
65 | * @param string $structName |
||
66 | * @param string[] $types |
||
67 | * @return Struct |
||
68 | */ |
||
69 | public function addUnionStruct($structName, $types) |
||
77 | /** |
||
78 | * @see \WsdlToPhp\PackageGenerator\Model\AbstractModel::get() |
||
79 | * @param string $value |
||
80 | * @return Model|null |
||
81 | */ |
||
82 | public function get($value) |
||
86 | } |
||
87 |