Passed
Push — dev ( 8fb5a3...80535b )
by Fike
04:50
created

ConversionOptions::setInterpolationMode()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace AmaTeam\Image\Projection\Framework;
4
5
use AmaTeam\Image\Projection\API\Conversion\FilterInterface;
6
use AmaTeam\Image\Projection\API\ConversionOptionsInterface;
7
8
class ConversionOptions implements ConversionOptionsInterface
9
{
10
    /**
11
     * @var string
12
     */
13
    private $interpolationMode = self::INTERPOLATION_BILINEAR;
14
    /**
15
     * @var FilterInterface[]
16
     */
17
    private $filters = [];
18
19
    /**
20
     * @return string
21
     */
22
    public function getInterpolationMode()
23
    {
24
        return $this->interpolationMode;
25
    }
26
27
    /**
28
     * @param string $interpolationMode
29
     * @return $this
30
     */
31
    public function setInterpolationMode($interpolationMode)
32
    {
33
        $this->interpolationMode = $interpolationMode;
34
        return $this;
35
    }
36
37
    /**
38
     * @return FilterInterface[]
39
     */
40
    public function getFilters()
41
    {
42
        return $this->filters;
43
    }
44
45
    /**
46
     * @param FilterInterface[] $filters
47
     * @return $this
48
     */
49
    public function setFilters($filters)
50
    {
51
        $this->filters = $filters;
52
        return $this;
53
    }
54
}
55