| Total Complexity | 6 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | class PercentChannel extends ColorChannel |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var float |
||
| 14 | */ |
||
| 15 | private $value; |
||
| 16 | |||
| 17 | public function __construct(float $value) |
||
| 20 | } |
||
| 21 | |||
| 22 | public function getFloat() : float |
||
| 25 | } |
||
| 26 | |||
| 27 | public function get8Bit() : int |
||
| 30 | } |
||
| 31 | |||
| 32 | public function get7Bit() : int |
||
| 33 | { |
||
| 34 | return UnitsConverter::percent2IntSevenBit($this->value); |
||
| 35 | } |
||
| 36 | |||
| 37 | public function getPercent() : float |
||
| 40 | } |
||
| 41 | |||
| 42 | public function invert() : PercentChannel |
||
| 45 | } |
||
| 46 | } |
||
| 47 |