ReaderOptions   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 20
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getInterpolationMode() 0 3 1
A setInterpolationMode() 0 4 1
1
<?php
2
3
namespace AmaTeam\Image\Projection\Type;
4
5
use AmaTeam\Image\Projection\API\Type\ReaderOptionsInterface;
6
use AmaTeam\Image\Projection\Constants;
7
8
class ReaderOptions implements ReaderOptionsInterface
9
{
10
    private $interpolationMode = Constants::INTERPOLATION_BILINEAR;
11
12
    /**
13
     * @return string
14
     */
15
    public function getInterpolationMode()
16
    {
17
        return $this->interpolationMode;
18
    }
19
20
    /**
21
     * @param string $interpolationMode
22
     * @return $this
23
     */
24
    public function setInterpolationMode($interpolationMode)
25
    {
26
        $this->interpolationMode = $interpolationMode;
27
        return $this;
28
    }
29
}
30