src/Serializer/Gateway/NativeArrayGateway.php 1 location
|
@@ 66-73 (lines=8) @@
|
63 |
|
* |
64 |
|
* @return mixed Can return all value types. |
65 |
|
*/ |
66 |
|
public function offsetGet($offset) |
67 |
|
{ |
68 |
|
if (isset($this->jsonData[$offset])) { |
69 |
|
return GatewayFactory::factory($this->jsonData[$offset]); |
70 |
|
} |
71 |
|
|
72 |
|
return null; |
73 |
|
} |
74 |
|
|
75 |
|
/** |
76 |
|
* Offset to set |
src/Serializer/Gateway/NativeObjectGateway.php 1 location
|
@@ 88-95 (lines=8) @@
|
85 |
|
* |
86 |
|
* @return mixed Can return all value types. |
87 |
|
*/ |
88 |
|
public function offsetGet($offset) |
89 |
|
{ |
90 |
|
if (property_exists($this->jsonData, $offset)) { |
91 |
|
return GatewayFactory::factory($this->jsonData->$offset); |
92 |
|
} |
93 |
|
|
94 |
|
return null; |
95 |
|
} |
96 |
|
|
97 |
|
/** |
98 |
|
* (PHP 5 >= 5.0.0)<br/> |