Completed
Push — master ( 10e391...d5f2dc )
by Harry
06:06
created

CompressionAwareTrait::getCompression()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
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_UNKNOWN;
22
23
    /**
24
     * @return string
25
     */
26
    public function getCompression()
27
    {
28
        return $this->compression;
29
    }
30
31
    /**
32
     * @param string $compression
33
     *
34
     * @return $this
35
     */
36
    public function setCompression($compression)
37
    {
38
        $this->compression = $compression;
39
40
        return $this;
41
    }
42
}
43