.htaccess
1 year ago
Destination.php
1 year ago
DestinationChunkedDownload.php
1 year ago
DestinationChunkedUpload.php
1 year ago
DestinationDirIterator.php
1 year ago
DestinationDiskUsage.php
1 year ago
DestinationFile.php
1 year ago
index.html
1 year ago
web.config
1 year ago
DestinationDiskUsage.php
49 lines
| 1 | <?php |
| 2 | |
| 3 | namespace JetBackup\Destination\Integration; |
| 4 | |
| 5 | if (!defined( '__JETBACKUP__')) die('Direct access is not allowed'); |
| 6 | |
| 7 | interface DestinationDiskUsage { |
| 8 | |
| 9 | /** |
| 10 | * @return int |
| 11 | */ |
| 12 | public function getFreeSpace(): int; |
| 13 | |
| 14 | /** |
| 15 | * @param int $space |
| 16 | * |
| 17 | * @return void |
| 18 | */ |
| 19 | public function setFreeSpace(int $space):void; |
| 20 | |
| 21 | /** |
| 22 | * @return int |
| 23 | */ |
| 24 | public function getTotalSpace(): int; |
| 25 | |
| 26 | /** |
| 27 | * @param int $space |
| 28 | * |
| 29 | * @return void |
| 30 | */ |
| 31 | public function setTotalSpace(int $space):void; |
| 32 | |
| 33 | /** |
| 34 | * @return int |
| 35 | */ |
| 36 | public function getUsageSpace():int ; |
| 37 | |
| 38 | /** |
| 39 | * @param int $space |
| 40 | * |
| 41 | * @return void |
| 42 | */ |
| 43 | public function setUsageSpace(int $space):void; |
| 44 | |
| 45 | /** |
| 46 | * @return array |
| 47 | */ |
| 48 | public function getData():array; |
| 49 | } |