Close.php 504 B

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