PluginProbe ʕ •ᴥ•ʔ
WP 2FA – Two-factor authentication for WordPress / 4.0.0
WP 2FA – Two-factor authentication for WordPress v4.0.0
4.0.0 1.7.1 2.0.0 2.0.1 2.1.0 2.2.0 2.2.1 2.3.0 2.4.0 2.4.1 2.4.2 2.5.0 2.6.0 2.6.1 2.6.2 2.6.3 2.6.4 2.7.0 2.8.0 2.9.0 2.9.1 2.9.2 2.9.3 3.0.0 3.0.1 3.1.0 3.1.1 3.1.1.2 trunk 1.2.0 1.3.0 1.4.0 1.4.1 1.4.2 1.5.0 1.5.1 1.5.2 1.6.0 1.6.1 1.6.2 1.7.0
wp-2fa / includes / classes / bacon / bacon-qr-code / src / Renderer / RendererStyle / Gradient.php
wp-2fa / includes / classes / bacon / bacon-qr-code / src / Renderer / RendererStyle Last commit date
EyeFill.php 1 week ago Fill.php 1 week ago Gradient.php 1 week ago GradientType.php 1 week ago RendererStyle.php 1 week ago index.php 1 week ago
Gradient.php
40 lines
1 <?php
2
3 declare (strict_types=1);
4 namespace WP2FA_Vendor\BaconQrCode\Renderer\RendererStyle;
5
6 use WP2FA_Vendor\BaconQrCode\Renderer\Color\ColorInterface;
7 final class Gradient
8 {
9 /**
10 * @var ColorInterface
11 */
12 private $startColor;
13 /**
14 * @var ColorInterface
15 */
16 private $endColor;
17 /**
18 * @var GradientType
19 */
20 private $type;
21 public function __construct(ColorInterface $startColor, ColorInterface $endColor, GradientType $type)
22 {
23 $this->startColor = $startColor;
24 $this->endColor = $endColor;
25 $this->type = $type;
26 }
27 public function getStartColor() : ColorInterface
28 {
29 return $this->startColor;
30 }
31 public function getEndColor() : ColorInterface
32 {
33 return $this->endColor;
34 }
35 public function getType() : GradientType
36 {
37 return $this->type;
38 }
39 }
40