12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <?php
- declare(strict_types = 1);
- namespace BaconQrCode\Renderer\RendererStyle;
- use BaconQrCode\Renderer\Color\ColorInterface;
- final class Gradient
- {
- /**
- * @var ColorInterface
- */
- private $startColor;
- /**
- * @var ColorInterface
- */
- private $endColor;
- /**
- * @var GradientType
- */
- private $type;
- public function __construct(ColorInterface $startColor, ColorInterface $endColor, GradientType $type)
- {
- $this->startColor = $startColor;
- $this->endColor = $endColor;
- $this->type = $type;
- }
- public function getStartColor() : ColorInterface
- {
- return $this->startColor;
- }
- public function getEndColor() : ColorInterface
- {
- return $this->endColor;
- }
- public function getType() : GradientType
- {
- return $this->type;
- }
- }
|