ArgumentFormatter.php 695 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. /*
  3. * This file is part of Collision.
  4. *
  5. * (c) Nuno Maduro <enunomaduro@gmail.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace NunoMaduro\Collision\Contracts;
  11. /**
  12. * This is an Collision Argument Formatter contract.
  13. *
  14. * @author Nuno Maduro <enunomaduro@gmail.com>
  15. */
  16. interface ArgumentFormatter
  17. {
  18. /**
  19. * Formats the provided array of arguments into
  20. * an understandable description.
  21. *
  22. * @param array $arguments
  23. * @param bool $recursive
  24. *
  25. * @return string
  26. */
  27. public function format(array $arguments, bool $recursive = true): string;
  28. }