1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?php
namespace Robo\Contract;
use Robo\Contract\OutputAdapterInterface;
/**
* Record and determine whether the current verbosity level exceeds the
* desired threshold level to produce output.
*/
interface VerbosityThresholdInterface
{
const VERBOSITY_NORMAL = 1;
const VERBOSITY_VERBOSE = 2;
const VERBOSITY_VERY_VERBOSE = 3;
const VERBOSITY_DEBUG = 4;
/**
* @param int $verbosityThreshold
*
* @return $this
*/
public function setVerbosityThreshold($verbosityThreshold);
/**
* @return int
*/
public function verbosityThreshold();
/**
* @param \Robo\Contract\OutputAdapterInterface $outputAdapter
*/
public function setOutputAdapter(OutputAdapterInterface $outputAdapter);
/**
* @return \Robo\Contract\OutputAdapterInterface
*/
public function outputAdapter();
/**
* @return bool
*/
public function hasOutputAdapter();
/**
* @return int
*/
public function verbosityMeetsThreshold();
/**
* @param string $message
*/
public function writeMessage($message);
}