1 | <?php |
||
18 | class Entry implements ResponseInterface, \ArrayAccess |
||
19 | { |
||
20 | /** |
||
21 | * @var array |
||
22 | */ |
||
23 | protected $data = null; |
||
24 | |||
25 | /** |
||
26 | * @var array |
||
27 | */ |
||
28 | protected $rawData = null; |
||
29 | |||
30 | /** |
||
31 | * @var array |
||
32 | */ |
||
33 | protected $metadata = null; |
||
34 | |||
35 | /** |
||
36 | * Entry constructor. |
||
37 | * |
||
38 | * @param $data |
||
39 | */ |
||
40 | 22 | public function __construct($data) |
|
53 | |||
54 | /** |
||
55 | * Get the entry data |
||
56 | * |
||
57 | * @return array |
||
58 | */ |
||
59 | 6 | public function getData() |
|
63 | |||
64 | /** |
||
65 | * Get the entry metadata |
||
66 | * |
||
67 | * @return array |
||
68 | */ |
||
69 | 6 | public function getMetaData() |
|
73 | |||
74 | /** |
||
75 | * @return array |
||
76 | */ |
||
77 | public function getRawData() |
||
81 | |||
82 | 2 | public function offsetExists($offset) |
|
86 | |||
87 | 2 | public function offsetGet($offset) |
|
91 | |||
92 | 2 | public function offsetSet($offset, $value) |
|
96 | |||
97 | 2 | public function offsetUnset($offset) |
|
101 | |||
102 | 2 | public function __get($name) |
|
110 | |||
111 | 2 | public function __set($name, $value) |
|
115 | |||
116 | /** |
||
117 | * Gets the object representation of this entry |
||
118 | * |
||
119 | * @return object |
||
120 | */ |
||
121 | 4 | public function jsonSerialize() |
|
128 | } |