Passed
Pull Request — master (#17)
by Marcus
03:15
created

Encryption::getEncryptionConstant()   A

Complexity

Conditions 5
Paths 3

Size

Total Lines 8
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 5
eloc 6
nc 3
nop 2
dl 0
loc 8
rs 9.6111
c 0
b 0
f 0
1
<?php
2
3
namespace Olssonm\BackupShield;
4
5
use ZipArchive;
6
7
class Encryption
8
{
9
    /**
10
     * Default encryption contants
11
     *
12
     * @var string
13
     */
14
    const ENCRYPTION_DEFAULT = ZipArchive::EM_AES_128;
15
16
    /**
17
     * AES-128 encryption contants
18
     *
19
     * @var string
20
     */
21
    const ENCRYPTION_WINZIP_AES_128 = ZipArchive::EM_AES_128;
22
23
    /**
24
     * AES-192 encryption contants
25
     *
26
     * @var string
27
     */
28
    const ENCRYPTION_WINZIP_AES_192 = ZipArchive::EM_AES_192;
29
30
    /**
31
     * AES-256 encryption contants
32
     *
33
     * @var string
34
     */
35
    const ENCRYPTION_WINZIP_AES_256 = ZipArchive::EM_AES_256;
36
}
37