Quoter.php 586 B

123456789101112131415161718192021222324252627
  1. <?php
  2. /*
  3. * This file is part of Respect/Stringifier.
  4. *
  5. * (c) Henrique Moody <henriquemoody@gmail.com>
  6. *
  7. * For the full copyright and license information, please view the "LICENSE.md"
  8. * file that was distributed with this source code.
  9. */
  10. declare(strict_types=1);
  11. namespace Respect\Stringifier;
  12. interface Quoter
  13. {
  14. /**
  15. * Should add quotes to the given string.
  16. *
  17. * @param string $string The string to add quotes to
  18. * @param int $depth The current depth
  19. *
  20. * @return string
  21. */
  22. public function quote(string $string, int $depth): string;
  23. }