Close.php
9 months ago
Curve.php
9 months ago
EllipticArc.php
9 months ago
Line.php
9 months ago
Move.php
9 months ago
OperationInterface.php
9 months ago
Path.php
9 months ago
Close.php
30 lines
| 1 | <?php |
| 2 | declare(strict_types = 1); |
| 3 | |
| 4 | namespace BaconQrCode\Renderer\Path; |
| 5 | |
| 6 | final class Close implements OperationInterface |
| 7 | { |
| 8 | /** |
| 9 | * @var self|null |
| 10 | */ |
| 11 | private static $instance; |
| 12 | |
| 13 | private function __construct() |
| 14 | { |
| 15 | } |
| 16 | |
| 17 | public static function instance() : self |
| 18 | { |
| 19 | return self::$instance ?: self::$instance = new self(); |
| 20 | } |
| 21 | |
| 22 | /** |
| 23 | * @return self |
| 24 | */ |
| 25 | public function translate(float $x, float $y) : OperationInterface |
| 26 | { |
| 27 | return $this; |
| 28 | } |
| 29 | } |
| 30 |