OutputInterface.php 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. namespace Symfony\Components\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. * @package symfony
  15. * @subpackage console
  16. * @author Fabien Potencier <fabien.potencier@symfony-project.com>
  17. */
  18. interface OutputInterface
  19. {
  20. /**
  21. * Writes a message to the output.
  22. *
  23. * @param string|array $messages The message as an array of lines of a single string
  24. * @param integer $type The type of output
  25. */
  26. public function write($messages, $type = 0);
  27. /**
  28. * Sets the verbosity of the output.
  29. *
  30. * @param integer $level The level of verbosity
  31. */
  32. public function setVerbosity($level);
  33. /**
  34. * Sets the decorated flag.
  35. *
  36. * @param Boolean $decorated Whether to decorated the messages or not
  37. */
  38. public function setDecorated($decorated);
  39. }