Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
optometrists
/
cache
/
cache
/
cache
/
cache
/
cache
/
cache
/
.wp-cli
/
wp-content
/
plugins
/
wp-phpmyadmin-extension
/
lib
/
phpMyAdmin
/
vendor
/
bacon
/
bacon-qr-code
/
src
/
Renderer
/
RendererStyle
:
Gradient.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?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; } }