Completed
Push — master ( bc803d...ad38cf )
by Sebastian
04:42
created

Compression::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 7
rs 9.4285
cc 1
eloc 5
nc 1
nop 2
1
<?php
2
namespace phpbu\App\Backup\Target;
3
4
/**
5
 * Compression
6
 *
7
 * @package    phpbu
8
 * @subpackage Backup
9
 * @author     Sebastian Feldmann <[email protected]>
10
 * @copyright  Sebastian Feldmann <[email protected]>
11
 * @license    https://opensource.org/licenses/MIT The MIT License (MIT)
12
 * @link       http://phpbu.de/
13
 * @since      Class available since Release 1.0.0
14
 */
15
interface Compression
16
{
17
    /**
18
     * Return the cli command.
19
     *
20
     * @return string
21
     */
22
    public function getCommand();
23
24
    /**
25
     * Path getter.
26
     *
27
     * @return string
28
     */
29
    public function getPath();
30
31
    /**
32
     * Returns the compressor suffix e.g. 'bz2'
33
     *
34
     * @return string
35
     */
36
    public function getSuffix();
37
38
    /**
39
     * Returns the compressor mime type.
40
     *
41
     * @return string
42
     */
43
    public function getMimeType();
44
45
    /**
46
     * Is the compression app pipeable.
47
     *
48
     * @return bool
49
     */
50
    public function isPipeable();
51
}
52