GenerationDetails::getMapping()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace AmaTeam\Image\Projection\Type;
4
5
use AmaTeam\Image\Projection\API\Conversion\FilterInterface;
6
use AmaTeam\Image\Projection\API\SpecificationInterface;
7
use AmaTeam\Image\Projection\API\Type\MappingInterface;
8
use AmaTeam\Image\Projection\API\Type\ReaderInterface;
9
10
class GenerationDetails
11
{
12
    /**
13
     * @var ReaderInterface
14
     */
15
    private $source;
16
    /**
17
     * @var MappingInterface
18
     */
19
    private $mapping;
20
    /**
21
     * @var SpecificationInterface
22
     */
23
    private $specification;
24
    /**
25
     * @var FilterInterface[]
26
     */
27
    private $filters;
28
29
    /**
30
     * @param ReaderInterface $source
31
     * @param MappingInterface $mapping
32
     * @param SpecificationInterface $specification
33
     * @param FilterInterface[] $filters
34
     */
35
    public function __construct(
36
        ReaderInterface $source,
37
        MappingInterface $mapping,
38
        SpecificationInterface $specification,
39
        array $filters = []
40
    ) {
41
        $this->source = $source;
42
        $this->mapping = $mapping;
43
        $this->specification = $specification;
44
        $this->filters = $filters;
45
    }
46
47
    /**
48
     * @return ReaderInterface
49
     */
50
    public function getSource()
51
    {
52
        return $this->source;
53
    }
54
55
    /**
56
     * @return MappingInterface
57
     */
58
    public function getMapping()
59
    {
60
        return $this->mapping;
61
    }
62
63
    /**
64
     * @return SpecificationInterface
65
     */
66
    public function getSpecification()
67
    {
68
        return $this->specification;
69
    }
70
71
    /**
72
     * @return FilterInterface[]
73
     */
74
    public function getFilters()
75
    {
76
        return $this->filters;
77
    }
78
}
79