JetStorage.php
31 lines
| 1 | <?php |
| 2 | |
| 3 | namespace JetBackup\Destination\Vendors\JetStorage; |
| 4 | use JetBackup\Destination\Vendors\S3\S3; |
| 5 | use JetBackup\Exception\FieldsValidationException; |
| 6 | |
| 7 | if (!defined( '__JETBACKUP__')) die('Direct access is not allowed'); |
| 8 | |
| 9 | class JetStorage extends S3 { |
| 10 | const TYPE = 'JetStorage'; |
| 11 | |
| 12 | /** |
| 13 | * @return string |
| 14 | */ |
| 15 | public function getQuickAccessCode():string { return $this->getOptions()->get('quick_access_code'); } |
| 16 | |
| 17 | /** |
| 18 | * @param string $key |
| 19 | * @return void |
| 20 | */ |
| 21 | protected function setQuickAccessCode(string $key):void { $this->getOptions()->set('quick_access_code', trim($key)); } |
| 22 | |
| 23 | /** |
| 24 | * @return void |
| 25 | * @throws FieldsValidationException |
| 26 | */ |
| 27 | public function validateFields(): void { |
| 28 | parent::validateFields(); |
| 29 | } |
| 30 | } |
| 31 |