DevelopingDecoratorAbstract::getTime()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php
2
namespace FilmTools\Developing;
3
4
use FilmTools\Commons\DensitiesInterface;
5
use FilmTools\Commons\ExposuresInterface;
6
7
abstract class DevelopingDecoratorAbstract implements DevelopingInterface
8
{
9
10
    /**
11
     * @var DevelopingInterface
12
     */
13
    protected $developing;
14
15
16
    /**
17
     * @param DevelopingInterface $developing
18
     */
19 6
    public function __construct (DevelopingInterface $developing)
20
    {
21 6
        $this->developing = $developing;
22 6
    }
23
24
25
    /**
26
     * @inheritDoc
27
     */
28 6
    public function getTime() : int
29
    {
30 6
        return $this->developing->getTime();
31
    }
32
33
34
    /**
35
     * @inheritDoc
36
     */
37 6
    public function getData() : array
38
    {
39 6
        return $this->developing->getData();
0 ignored issues
show
Deprecated Code introduced by
The method FilmTools\Developing\Dev...ingInterface::getData() has been deprecated.

This method has been deprecated.

Loading history...
40
    }
41
42
43
    /**
44
     * @inheritDoc
45
     */
46 6
    public function count()
47
    {
48 6
        return $this->developing->count();
49
    }
50
51
52
    /**
53
     * @inheritDoc
54
     */
55 6
    public function getIterator()
56
    {
57 6
        return $this->developing->getIterator();
58
    }
59
60
61
    /**
62
     * @inheritDoc
63
     */
64 6
    public function getExposures() : ExposuresInterface
65
    {
66 6
        return $this->developing->getExposures();
67
    }
68
69
70
    /**
71
     * @inheritDoc
72
     */
73 6
    public function getDensities() : DensitiesInterface
74
    {
75 6
        return $this->developing->getDensities();
76
    }
77
78
79
    /**
80
     * @inheritDoc
81
     */
82
    public function has( $logH )
83
    {
84
        return $this->developing->has ($logH );
85
    }
86
87
88
    /**
89
     * @inheritDoc
90
     */
91
    public function get( $logH )
92
    {
93
        return $this->developing->get ($logH );
94
    }
95
}
96