CompressionAwareTrait   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 27
c 0
b 0
f 0
wmc 2
lcom 0
cbo 0
ccs 5
cts 5
cp 1
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getCompression() 0 4 1
A setCompression() 0 6 1
1
<?php
2
/**
3
 * This file is part of graze/data-file
4
 *
5
 * Copyright (c) 2016 Nature Delivered Ltd. <https://www.graze.com>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 *
10
 * @license https://github.com/graze/data-file/blob/master/LICENSE.md
11
 * @link    https://github.com/graze/data-file
12
 */
13
14
namespace Graze\DataFile\Modify\Compress;
15
16
trait CompressionAwareTrait
17
{
18
    /**
19
     * @var string
20
     */
21
    protected $compression = CompressionFactory::TYPE_NONE;
22
23
    /**
24
     * @return string
25
     */
26 33
    public function getCompression()
27
    {
28 33
        return $this->compression;
29
    }
30
31
    /**
32
     * @param string $compression
33
     *
34
     * @return $this
35
     */
36 23
    public function setCompression($compression)
37
    {
38 23
        $this->compression = $compression;
39
40 23
        return $this;
41
    }
42
}
43