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