DevelopingDecoratorAbstract   A
last analyzed

Complexity

Total Complexity 9

Size/Duplication

Total Lines 89
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 78.95%

Importance

Changes 0
Metric Value
wmc 9
lcom 1
cbo 1
dl 0
loc 89
ccs 15
cts 19
cp 0.7895
rs 10
c 0
b 0
f 0

9 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getTime() 0 4 1
A getData() 0 4 1
A count() 0 4 1
A getIterator() 0 4 1
A getExposures() 0 4 1
A getDensities() 0 4 1
A has() 0 4 1
A get() 0 4 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