| 1 | <?php |
||
| 5 | class VaultConfiguration |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * An arbitrary user-defined title that helps to identity a vault by some user-specific information. |
||
| 9 | * |
||
| 10 | * @var string |
||
| 11 | */ |
||
| 12 | protected $title; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * Identifier for the vault adapter to use. |
||
| 16 | * |
||
| 17 | * @var string |
||
| 18 | */ |
||
| 19 | protected $vaultAdapter; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Identifier for the lock adapter to use. |
||
| 23 | * |
||
| 24 | * @var string |
||
| 25 | */ |
||
| 26 | protected $lockAdapter; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Map with additional vaultAdapter- or lockAdapter-specific settings. |
||
| 30 | * |
||
| 31 | * @var array |
||
| 32 | */ |
||
| 33 | protected $settings; |
||
| 34 | |||
| 35 | public function __construct(string $vaultAdapter, string $lockAdapter) |
||
| 41 | |||
| 42 | public function getTitle(): string |
||
| 46 | |||
| 47 | public function setTitle(string $title): VaultConfiguration |
||
| 53 | |||
| 54 | public function getVaultAdapter(): string |
||
| 58 | |||
| 59 | public function setVaultAdapter(string $vaultAdapter): VaultConfiguration |
||
| 65 | |||
| 66 | public function getLockAdapter(): string |
||
| 70 | |||
| 71 | public function setLockAdapter(string $lockAdapter): VaultConfiguration |
||
| 77 | |||
| 78 | public function getSettings(): array |
||
| 82 | |||
| 83 | public function getSetting(string $name) |
||
| 87 | |||
| 88 | public function setSettings(array $settings): VaultConfiguration |
||
| 94 | |||
| 95 | public function setSetting(string $name, $value): VaultConfiguration |
||
| 101 | } |
||
| 102 |