1 | <?php |
||
23 | abstract class Document implements \ArrayAccess |
||
24 | { |
||
25 | /** |
||
26 | * @var DocumentData The document's data |
||
27 | */ |
||
28 | private $data; |
||
29 | |||
30 | public function __construct(DocumentData $data) |
||
34 | |||
35 | /** |
||
36 | * {@inheritDoc} |
||
37 | */ |
||
38 | public function offsetExists($offset) |
||
42 | |||
43 | /** |
||
44 | * {@inheritDoc} |
||
45 | */ |
||
46 | public function offsetGet($offset) |
||
50 | |||
51 | /** |
||
52 | * {@inheritDoc} |
||
53 | */ |
||
54 | public function offsetSet($offset, $value) |
||
58 | |||
59 | /** |
||
60 | * {@inheritDoc} |
||
61 | */ |
||
62 | public function offsetUnset($offset) |
||
66 | |||
67 | /** |
||
68 | * Returns the document's data. |
||
69 | * |
||
70 | * @return DocumentData The data |
||
71 | */ |
||
72 | public function getData() |
||
76 | } |
||
77 |