Passed
Push — master ( e47858...55d38d )
by Carsten
02:40
created

Exposures   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 20
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getExposures() 0 4 1
A search() 0 4 1
1
<?php
2
namespace FilmTools\Commons;
3
4
5
class Exposures extends MinMaxArrayIterator implements ExposuresInterface, ExposuresProviderInterface
6
{
7
    /**
8
     * @inheritDoc
9
     * @return $this
10
     */
11 9
    public function getExposures() : ExposuresInterface
12
    {
13 9
        return $this;
14
    }
15
16
    /**
17
     * @inheritDoc
18
     */
19 9
    public function search( float $logH )
20
    {
21 9
        return array_search($logH, $this->getArrayCopy());
0 ignored issues
show
Bug Compatibility introduced by
The expression array_search($logH, $this->getArrayCopy()); of type false|integer|string adds the type string to the return on line 21 which is incompatible with the return type declared by the interface FilmTools\Commons\SearchableInterface::search of type integer|false.
Loading history...
22
    }
23
24
}
25