| Total Complexity | 4 |
| Total Lines | 42 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | class ZipArchiveAdapter extends Adapter |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * @var string |
||
| 24 | */ |
||
| 25 | public $path; |
||
| 26 | /** |
||
| 27 | * @var string|null |
||
| 28 | */ |
||
| 29 | public $prefix; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @inheritdoc |
||
| 33 | */ |
||
| 34 | public function init() |
||
| 43 | } |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @inheritdoc |
||
| 47 | */ |
||
| 48 | public static function displayName(): string |
||
| 49 | { |
||
| 50 | return Yii::t('yuncms', 'Zip Archive'); |
||
| 51 | } |
||
| 52 | |||
| 53 | /** |
||
| 54 | * @return \League\Flysystem\ZipArchive\ZipArchiveAdapter |
||
| 55 | */ |
||
| 56 | protected function prepareAdapter() |
||
| 62 | ); |
||
| 63 | } |
||
| 64 | } |