WriterRegistryInterface.php 676 B

123456789101112131415161718192021222324252627282930
  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. /** @param WriterInterface[] $writers */
  14. public function addWriters(iterable $writers): void;
  15. public function addWriter(WriterInterface $writer): void;
  16. public function getWriter(string $name): WriterInterface;
  17. public function getDefaultWriter(): WriterInterface;
  18. /** @return WriterInterface[] */
  19. public function getWriters(): array;
  20. }