OutputInterface.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. namespace Symfony\Component\Console\Output;
  3. /*
  4. * This file is part of the Symfony framework.
  5. *
  6. * (c) Fabien Potencier <fabien.potencier@symfony-project.com>
  7. *
  8. * This source file is subject to the MIT license that is bundled
  9. * with this source code in the file LICENSE.
  10. */
  11. /**
  12. * OutputInterface is the interface implemented by all Output classes.
  13. *
  14. * @author Fabien Potencier <fabien.potencier@symfony-project.com>
  15. */
  16. interface OutputInterface
  17. {
  18. /**
  19. * Writes a message to the output.
  20. *
  21. * @param string|array $messages The message as an array of lines of a single string
  22. * @param Boolean $newline Whether to add a newline or not
  23. * @param integer $type The type of output
  24. *
  25. * @throws \InvalidArgumentException When unknown output type is given
  26. */
  27. function write($messages, $newline = false, $type = 0);
  28. /**
  29. * Sets the verbosity of the output.
  30. *
  31. * @param integer $level The level of verbosity
  32. */
  33. function setVerbosity($level);
  34. /**
  35. * Sets the decorated flag.
  36. *
  37. * @param Boolean $decorated Whether to decorated the messages or not
  38. */
  39. function setDecorated($decorated);
  40. }