WriterInterface.php 774 B

123456789101112131415161718192021222324252627282930313233
  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\Writer;
  10. use Endroid\QrCode\QrCodeInterface;
  11. interface WriterInterface
  12. {
  13. public function writeString(QrCodeInterface $qrCode): string;
  14. public function writeDataUri(QrCodeInterface $qrCode): string;
  15. public function writeFile(QrCodeInterface $qrCode, string $path): void;
  16. public static function getContentType(): string;
  17. public static function supportsExtension(string $extension): bool;
  18. /** @return array<string> */
  19. public static function getSupportedExtensions(): array;
  20. public function getName(): string;
  21. }