QrCodeInterface.php 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <?php
  2. declare(strict_types=1);
  3. /*
  4. * (c) Jeroen van den Enden <info@endroid.nl>
  5. *
  6. * This source file is subject to the MIT license that is bundled
  7. * with this source code in the file LICENSE.
  8. */
  9. namespace Endroid\QrCode;
  10. interface QrCodeInterface
  11. {
  12. public function getText(): string;
  13. public function getSize(): int;
  14. public function getMargin(): int;
  15. public function getForegroundColor(): array;
  16. public function getBackgroundColor(): array;
  17. public function getEncoding(): string;
  18. public function getRoundBlockSize(): bool;
  19. public function getErrorCorrectionLevel(): ErrorCorrectionLevel;
  20. public function getLogoPath(): ?string;
  21. public function getLogoWidth(): ?int;
  22. public function getLogoHeight(): ?int;
  23. public function getLabel(): ?string;
  24. public function getLabelFontPath(): string;
  25. public function getLabelFontSize(): int;
  26. public function getLabelAlignment(): string;
  27. public function getLabelMargin(): array;
  28. public function getValidateResult(): bool;
  29. public function getWriterOptions(): array;
  30. public function getContentType(): string;
  31. public function setWriterRegistry(WriterRegistryInterface $writerRegistry): void;
  32. public function writeString(): string;
  33. public function writeDataUri(): string;
  34. public function writeFile(string $path): void;
  35. public function getData(): array;
  36. }