| Total Complexity | 1 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | abstract class AbstractColorBlockImage |
||
| 8 | { |
||
| 9 | |||
| 10 | /** |
||
| 11 | * @var float |
||
| 12 | */ |
||
| 13 | protected float $with; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @var float |
||
| 17 | */ |
||
| 18 | protected float $height; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var string |
||
| 22 | */ |
||
| 23 | protected string $color; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @param float $with |
||
| 27 | * @param float $height |
||
| 28 | * @param string $color |
||
| 29 | */ |
||
| 30 | 2 | public function __construct(float $with = 100, float $height = 100, string $color = '#808080') |
|
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @return Response |
||
| 39 | * @throws \Exception |
||
| 40 | */ |
||
| 41 | abstract public function image(): Response; |
||
| 42 | } |
||
| 43 |