Debian Codegraph @

src/Renderer/RendererStyle/Gradient.php

raw
1 <?php
2 declare(strict_types = 1);
3
4 namespace BaconQrCode\Renderer\RendererStyle;
5
6 use BaconQrCode\Renderer\Color\ColorInterface;
7
8 final class Gradient
9 {
10 public function __construct(
11 private readonly ColorInterface $startColor,
12 private readonly ColorInterface $endColor,
13 private readonly GradientType $type
14 ) {
15 }
16
17 public function getStartColor() : ColorInterface
18 {
19 return $this->startColor;
20 }
21
22 public function getEndColor() : ColorInterface
23 {
24 return $this->endColor;
25 }
26
27 public function getType() : GradientType
28 {
29 return $this->type;
30 }
31 }