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 / Path / Move.php
wp-2fa / includes / classes / bacon / bacon-qr-code / src / Renderer / Path Last commit date
Close.php 1 week ago Curve.php 1 week ago EllipticArc.php 1 week ago Line.php 1 week ago Move.php 1 week ago OperationInterface.php 1 week ago Path.php 1 week ago index.php 1 week ago
Move.php
37 lines
1 <?php
2
3 declare (strict_types=1);
4 namespace WP2FA_Vendor\BaconQrCode\Renderer\Path;
5
6 final class Move implements OperationInterface
7 {
8 /**
9 * @var float
10 */
11 private $x;
12 /**
13 * @var float
14 */
15 private $y;
16 public function __construct(float $x, float $y)
17 {
18 $this->x = $x;
19 $this->y = $y;
20 }
21 public function getX() : float
22 {
23 return $this->x;
24 }
25 public function getY() : float
26 {
27 return $this->y;
28 }
29 /**
30 * @return self
31 */
32 public function translate(float $x, float $y) : OperationInterface
33 {
34 return new self($this->x + $x, $this->y + $y);
35 }
36 }
37