EyeInterface.php 596 B

1234567891011121314151617181920212223242526
  1. <?php
  2. declare(strict_types = 1);
  3. namespace BaconQrCode\Renderer\Eye;
  4. use BaconQrCode\Renderer\Path\Path;
  5. /**
  6. * Interface for describing the look of an eye.
  7. */
  8. interface EyeInterface
  9. {
  10. /**
  11. * Returns the path of the external eye element.
  12. *
  13. * The path origin point (0, 0) must be anchored at the middle of the path.
  14. */
  15. public function getExternalPath() : Path;
  16. /**
  17. * Returns the path of the internal eye element.
  18. *
  19. * The path origin point (0, 0) must be anchored at the middle of the path.
  20. */
  21. public function getInternalPath() : Path;
  22. }