WriterInterface.php 741 B

12345678910111213141516171819202122232425262728293031
  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. public static function getSupportedExtensions(): array;
  19. public function getName(): string;
  20. }