| 1 | <?php |
||
| 23 | abstract class Document implements \ArrayAccess |
||
| 24 | { |
||
| 25 | private $data; |
||
| 26 | |||
| 27 | public function __construct(DocumentData $data) |
||
| 31 | |||
| 32 | 12 | /** |
|
| 33 | 12 | * {@inheritDoc} |
|
| 34 | */ |
||
| 35 | public function offsetExists($offset): bool |
||
| 39 | |||
| 40 | 3 | /** |
|
| 41 | * {@inheritDoc} |
||
| 42 | */ |
||
| 43 | public function offsetGet($offset) |
||
| 47 | |||
| 48 | 3 | /** |
|
| 49 | * {@inheritDoc} |
||
| 50 | */ |
||
| 51 | public function offsetSet($offset, $value): void |
||
| 55 | |||
| 56 | 3 | /** |
|
| 57 | * {@inheritDoc} |
||
| 58 | */ |
||
| 59 | public function offsetUnset($offset): void |
||
| 63 | |||
| 64 | 3 | /** |
|
| 65 | * Returns the document's data. |
||
| 66 | */ |
||
| 67 | public function getData(): DocumentData |
||
| 71 | } |
||
| 72 |