1 | <?php |
||
25 | final class DocumentData implements \ArrayAccess |
||
26 | { |
||
27 | /** |
||
28 | * @var array The data |
||
29 | */ |
||
30 | private $data = array(); |
||
31 | |||
32 | public function __construct(array $data = array()) |
||
36 | |||
37 | /** |
||
38 | * {@inheritDoc} |
||
39 | */ |
||
40 | public function offsetExists($offset) |
||
44 | |||
45 | /** |
||
46 | * {@inheritDoc} |
||
47 | */ |
||
48 | public function offsetGet($offset) |
||
52 | |||
53 | /** |
||
54 | * {@inheritDoc} |
||
55 | */ |
||
56 | public function offsetSet($offset, $value) |
||
60 | |||
61 | /** |
||
62 | * {@inheritDoc} |
||
63 | */ |
||
64 | public function offsetUnset($offset) |
||
68 | |||
69 | /** |
||
70 | * Returns all data as an array. |
||
71 | * |
||
72 | * @return array The data |
||
73 | */ |
||
74 | public function getData() |
||
78 | } |
||
79 |