Total Complexity | 2 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 1 | Features | 1 |
1 | <?php |
||
26 | trait PasswordTrait |
||
27 | { |
||
28 | |||
29 | abstract public function getArchive(): ?ZipArchive; |
||
30 | |||
31 | /** |
||
32 | * zip file password |
||
33 | * |
||
34 | * @var string |
||
35 | */ |
||
36 | private ?string $password = null; |
||
37 | |||
38 | /** |
||
39 | * Set zip password |
||
40 | * |
||
41 | * @param string $password |
||
42 | * |
||
43 | * @return ZipInterface |
||
44 | */ |
||
45 | 5 | public function setPassword(string $password): ZipInterface |
|
51 | } |
||
52 | |||
53 | /** |
||
54 | * Get current zip password |
||
55 | * |
||
56 | * @return string |
||
57 | */ |
||
58 | 4 | protected function getPassword(): ?string |
|
63 |