1 | <?php |
||
12 | class OutputStyle extends SymfonyStyle |
||
|
|||
13 | { |
||
14 | /** |
||
15 | * The output instance. |
||
16 | * |
||
17 | * @var \Symfony\Component\Console\Output\OutputInterface |
||
18 | */ |
||
19 | private $output; |
||
20 | |||
21 | /** |
||
22 | * Create a new Console OutputStyle instance. |
||
23 | * |
||
24 | * @param \Symfony\Component\Console\Input\InputInterface $input |
||
25 | * @param \Symfony\Component\Console\Output\OutputInterface $output |
||
26 | * |
||
27 | * @return void |
||
28 | */ |
||
29 | public function __construct(InputInterface $input, OutputInterface $output) |
||
35 | |||
36 | /** |
||
37 | * Returns whether verbosity is quiet (-q). |
||
38 | * |
||
39 | * @return bool |
||
40 | */ |
||
41 | public function isQuiet() |
||
45 | |||
46 | /** |
||
47 | * Returns whether verbosity is verbose (-v). |
||
48 | * |
||
49 | * @return bool |
||
50 | */ |
||
51 | public function isVerbose() |
||
55 | |||
56 | /** |
||
57 | * Returns whether verbosity is very verbose (-vv). |
||
58 | * |
||
59 | * @return bool |
||
60 | */ |
||
61 | public function isVeryVerbose() |
||
65 | |||
66 | /** |
||
67 | * Returns whether verbosity is debug (-vvv). |
||
68 | * |
||
69 | * @return bool |
||
70 | */ |
||
71 | public function isDebug() |
||
75 | } |
||
76 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.