Total Complexity | 4 |
Total Lines | 49 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
25 | trait Encryption |
||
26 | { |
||
27 | |||
28 | /** |
||
29 | * The PGP key file URL. |
||
30 | * |
||
31 | * @var string |
||
32 | */ |
||
33 | protected $encryption = null; |
||
34 | |||
35 | |||
36 | /** |
||
37 | * Set the encryption. |
||
38 | * |
||
39 | * @param string $encryption |
||
40 | * |
||
41 | * @return SecurityTxt |
||
42 | */ |
||
43 | 3 | public function setEncryption(string $encryption): SecurityTxt |
|
52 | } |
||
53 | |||
54 | /** |
||
55 | * Get the encryption. |
||
56 | * |
||
57 | * @return string |
||
58 | */ |
||
59 | 1 | public function getEncryption(): string |
|
62 | } |
||
63 | |||
64 | /** |
||
65 | * Determines if encryption is valid. |
||
66 | * |
||
67 | * @param string $encryption |
||
68 | * |
||
69 | * @return bool |
||
70 | */ |
||
71 | 3 | public function validEncryption(string $encryption): bool |
|
76 |