1 | <?php |
||
5 | abstract class AbstractStructBase implements StructInterface, \JsonSerializable |
||
6 | { |
||
7 | /** |
||
8 | * Returns the properties of this object |
||
9 | * @return mixed[] |
||
10 | */ |
||
11 | 5 | public function jsonSerialize() |
|
15 | /** |
||
16 | * Generic method called when an object has been exported with var_export() functions |
||
17 | * It allows to return an object instantiated with the values |
||
18 | * @uses ApiWsdlClass::_set() |
||
19 | * @param array $array the exported values |
||
20 | * @return Struct |
||
21 | */ |
||
22 | 15 | public static function __set_state(array $array) |
|
31 | /** |
||
32 | * Generic method setting value |
||
33 | * @throws \InvalidArgumentException |
||
34 | * @param string $name property name to set |
||
35 | * @param mixed $value property value to use |
||
36 | * @return Struct |
||
37 | */ |
||
38 | 65 | public function _set($name, $value) |
|
48 | /** |
||
49 | * Generic method getting value |
||
50 | * @throws \InvalidArgumentException |
||
51 | * @param string $name property name to get |
||
52 | * @return mixed |
||
53 | */ |
||
54 | 65 | public function _get($name) |
|
62 | } |
||
63 |