1 | <?php |
||
14 | class StorageMetadata implements StorageLayerInterface |
||
15 | { |
||
16 | /** |
||
17 | * The database name. |
||
18 | * |
||
19 | * @var string |
||
20 | */ |
||
21 | public $db; |
||
22 | |||
23 | /** |
||
24 | * The collection name. |
||
25 | * |
||
26 | * @var string |
||
27 | */ |
||
28 | public $collection; |
||
29 | |||
30 | /** |
||
31 | * The ID strategy to use. |
||
32 | * Currently object is the only valid choice. |
||
33 | * |
||
34 | * @todo Implement an auto-increment integer id strategy. |
||
35 | * @var string |
||
36 | */ |
||
37 | public $idStrategy = 'object'; |
||
38 | |||
39 | /** |
||
40 | * Configured schemata for this entity |
||
41 | * |
||
42 | * @var array |
||
43 | */ |
||
44 | public $schemata = []; |
||
45 | |||
46 | /** |
||
47 | * {@inheritDoc} |
||
48 | */ |
||
49 | public function getKey() |
||
53 | |||
54 | /** |
||
55 | * {@inheritDoc} |
||
56 | */ |
||
57 | public function merge(MergeableInterface $metadata) |
||
61 | } |
||
62 |