1 | <?php |
||
7 | class MinMaxArrayIterator extends \ArrayIterator implements MinMaxInterface |
||
8 | { |
||
9 | protected $range_steps = 0.1; |
||
10 | |||
11 | 21 | public function max() |
|
15 | |||
16 | 48 | public function min() |
|
20 | |||
21 | /** |
||
22 | * Returns an range array from smallest to greatest exposure value. |
||
23 | * The default step width is 0.1 and can be customized |
||
24 | * with an optional method parameter. |
||
25 | * |
||
26 | * The minimum value is ceiled, and the maximum is floored, |
||
27 | * to the next multiple of the used step width. |
||
28 | * |
||
29 | * @param float $step Optional: custom range step width |
||
30 | * @return \SplFixedArray |
||
31 | */ |
||
32 | 12 | public function getRange( float $step = null) : \SplFixedArray |
|
40 | |||
41 | } |
||
42 |