Total Complexity | 4 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Coverage | 45.45% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
20 | final class Media implements MediaContract |
||
21 | { |
||
22 | /** @var Unit|null */ |
||
23 | private $unit; |
||
24 | |||
25 | /** @var float|null */ |
||
26 | private $width; |
||
27 | |||
28 | /** @var float|null */ |
||
29 | private $height; |
||
30 | |||
31 | 9 | public function __construct(?Unit $unit = null, ?float $width = null, ?float $height = null) |
|
32 | { |
||
33 | 9 | $this->unit = $unit; |
|
34 | 9 | $this->width = $width; |
|
35 | 9 | $this->height = $height; |
|
36 | 9 | } |
|
37 | |||
38 | public function getUnit(): ?Unit |
||
39 | { |
||
40 | return $this->unit; |
||
41 | } |
||
42 | |||
43 | public function getWidth(): ?float |
||
46 | } |
||
47 | |||
48 | public function getHeight(): ?float |
||
51 | } |
||
52 | } |
||
53 |