4 * This file is part of the Behat Testwork.
5 * (c) Konstantin Kudryashov <ever.zet@gmail.com>
7 * For the full copyright and license information, please view the LICENSE
8 * file that was distributed with this source code.
11 namespace Behat\Testwork\Output\Printer;
14 * Isolates all console/filesystem writing.
16 * @author Konstantin Kudryashov <ever.zet@gmail.com>
18 interface OutputPrinter
21 * @deprecated since 3.1, to be removed in 4.0
23 const VERBOSITY_NORMAL = 1;
25 * @deprecated since 3.1, to be removed in 4.0
27 const VERBOSITY_VERBOSE = 2;
29 * @deprecated since 3.1, to be removed in 4.0
31 const VERBOSITY_VERY_VERBOSE = 3;
33 * @deprecated since 3.1, to be removed in 4.0
35 const VERBOSITY_DEBUG = 4;
42 public function setOutputPath($path);
45 * Returns output path.
49 * @deprecated since 3.1, to be removed in 4.0
51 public function getOutputPath();
56 * @param array $styles
58 public function setOutputStyles(array $styles);
61 * Returns output styles.
65 * @deprecated since 3.1, to be removed in 4.0
67 public function getOutputStyles();
70 * Forces output to be decorated.
72 * @param Boolean $decorated
74 public function setOutputDecorated($decorated);
77 * Returns output decoration status.
79 * @return null|Boolean
81 * @deprecated since 3.1, to be removed in 4.0
83 public function isOutputDecorated();
86 * Sets output verbosity level.
88 * @param integer $level
90 public function setOutputVerbosity($level);
93 * Returns output verbosity level.
97 * @deprecated since 3.1, to be removed in 4.0
99 public function getOutputVerbosity();
102 * Writes message(s) to output stream.
104 * @param string|array $messages message or array of messages
106 public function write($messages);
109 * Writes newlined message(s) to output stream.
111 * @param string|array $messages message or array of messages
113 public function writeln($messages = '');
116 * Clear output stream, so on next write formatter will need to init (create) it again.
118 public function flush();