| Total Complexity | 5 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | class DrawBoxAroundFaces implements Drawable |
||
| 13 | { |
||
| 14 | private int $borderColor = Color::GREEN; |
||
| 15 | |||
| 16 | public function __construct(private Face $face, private Image $image) |
||
| 17 | { |
||
| 18 | } |
||
| 19 | |||
| 20 | public function borderColor(int $color): static |
||
| 21 | { |
||
| 22 | $this->borderColor = $color; |
||
| 23 | |||
| 24 | return $this; |
||
| 25 | } |
||
| 26 | |||
| 27 | public function draw(): Image |
||
| 45 | } |
||
| 46 | } |
||
| 47 |