Test Setup Failed
Push — master ( 656577...88aaf0 )
by Carsten
03:37
created

Zones::search()   A

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 1
crap 1
1
<?php
2
namespace FilmTools\Commons;
3
4
5
class Zones extends MinMaxArrayIterator implements ZonesInterface, ZonesProviderInterface
6
{
7
    use SearchableTrait;
8
9
    /**
10
     * @inheritDoc
11 12
     * @return $this
12
     */
13 12
    public function getZones() : ZonesInterface
14
    {
15
        return $this;
16
    }
17
18
19 12
    /**
20
     * @inheritDoc
21 12
     * @return Exposures
22
     */
23
    public function getExposures() : ExposuresInterface
24
    {
25
        return new Exposures( array_map( function( $zone ) {
26
            return $zone * log10(2);
27
        }, $this->getArrayCopy()));
28
    }
29
}
30