1 | <?php |
||
10 | class VaultConfiguration implements ArraySerializableInterface |
||
11 | { |
||
12 | /** |
||
13 | * @var Configuration |
||
14 | */ |
||
15 | protected $configuration; |
||
16 | |||
17 | /** |
||
18 | * An arbitrary user-defined title that helps to identity a vault by some user-specific information. |
||
19 | * |
||
20 | * @var string |
||
21 | */ |
||
22 | protected $title = 'unknown'; |
||
23 | |||
24 | /** |
||
25 | * Identifier for the vault adapter to use. |
||
26 | * |
||
27 | * @var string |
||
28 | */ |
||
29 | protected $adapter = 'unknown'; |
||
30 | |||
31 | /** |
||
32 | * Identifier for the lock adapter to use. |
||
33 | * |
||
34 | * @var string |
||
35 | */ |
||
36 | protected $lockAdapter = 'storage'; |
||
37 | |||
38 | /** |
||
39 | * Identifier for the index merger to be used. |
||
40 | * |
||
41 | * @var string |
||
42 | */ |
||
43 | protected $indexMerger = 'standard'; |
||
44 | |||
45 | /** |
||
46 | * Identifier for the conflict handler to use. |
||
47 | * |
||
48 | * @var string |
||
49 | */ |
||
50 | protected $conflictHandler = 'panicking'; |
||
51 | |||
52 | /** |
||
53 | * Identifier for the operation list builder to use. |
||
54 | * |
||
55 | * @var string |
||
56 | */ |
||
57 | protected $operationListBuilder = 'standard'; |
||
58 | |||
59 | /** |
||
60 | * Map with additional storageAdapter- or lockAdapter-specific settings. |
||
61 | * |
||
62 | * @var array |
||
63 | */ |
||
64 | protected $settings = []; |
||
65 | |||
66 | public function __construct(Configuration $configuration) |
||
71 | |||
72 | public function getConfiguration(): Configuration |
||
76 | |||
77 | public function getTitle(): string |
||
81 | |||
82 | public function setTitle(string $title): VaultConfiguration |
||
88 | |||
89 | public function getAdapter(): string |
||
93 | |||
94 | public function setAdapter(string $adapter): VaultConfiguration |
||
100 | |||
101 | public function getLockAdapter(): string |
||
105 | |||
106 | public function setLockAdapter(string $lockAdapter): VaultConfiguration |
||
112 | |||
113 | public function getIndexMerger(): string |
||
117 | |||
118 | public function setIndexMerger(string $indexMerger): VaultConfiguration |
||
124 | |||
125 | public function getConflictHandler(): string |
||
129 | |||
130 | public function setConflictHandler(string $conflictHandler): VaultConfiguration |
||
136 | |||
137 | public function getOperationListBuilder(): string |
||
141 | |||
142 | public function setOperationListBuilder(string $operationListBuilder): VaultConfiguration |
||
148 | |||
149 | public function getSettings(): array |
||
153 | |||
154 | public function getSetting(string $name) |
||
158 | |||
159 | public function setSettings(array $settings): VaultConfiguration |
||
165 | |||
166 | public function setSetting(string $name, $value): VaultConfiguration |
||
172 | |||
173 | /** |
||
174 | * {@inheritdoc} |
||
175 | */ |
||
176 | public function exchangeArray(array $array) |
||
189 | |||
190 | /** |
||
191 | * {@inheritdoc} |
||
192 | */ |
||
193 | public function getArrayCopy() |
||
201 | |||
202 | public static function loadValidatorMetadata(ClassMetadata $metadata) |
||
211 | } |
||
212 |