WriterRegistryInterface.php 594 B

123456789101112131415161718192021222324252627
  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. use Endroid\QrCode\Writer\WriterInterface;
  11. interface WriterRegistryInterface
  12. {
  13. public function addWriters(iterable $writers): void;
  14. public function addWriter(WriterInterface $writer): void;
  15. public function getWriter(string $name): WriterInterface;
  16. public function getDefaultWriter(): WriterInterface;
  17. public function getWriters(): array;
  18. }