Skip to content

Commit 9ff47b8

Browse files
committed
feature #13086 [Console] Define isVerbose(), etc. methods in OutputInterface (frne)
This PR was squashed before being merged into the 3.0-dev branch (closes #13086). Discussion ---------- [Console] Define isVerbose(), etc. methods in OutputInterface Could / should the ```Symfony\Component\Console\Output\OutputInterface``` define the methods ```isQuiet()```, ```isVerbose()```, ```isVeryVerbose()``` and ```isDebug()```? Because the Interface already defines the verbosity constants and the ```getVerbosity()``` method, it will probalby be the right place to do so... | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | yes | Deprecations? | no | Tests pass? | yes | Fixed tickets | | License | MIT | Doc PR | Commits ------- 1ac95b1 [Console] Define isVerbose(), etc. methods in OutputInterface
2 parents 270818d + 1ac95b1 commit 9ff47b8

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

src/Symfony/Component/Console/Output/OutputInterface.php

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,34 @@ public function setVerbosity($level);
7575
*/
7676
public function getVerbosity();
7777

78+
/**
79+
* Returns whether verbosity is quiet (-q)
80+
*
81+
* @return bool true if verbosity is set to VERBOSITY_QUIET, false otherwise
82+
*/
83+
public function isQuiet();
84+
85+
/**
86+
* Returns whether verbosity is verbose (-v)
87+
*
88+
* @return bool true if verbosity is set to VERBOSITY_VERBOSE, false otherwise
89+
*/
90+
public function isVerbose();
91+
92+
/**
93+
* Returns whether verbosity is very verbose (-vv)
94+
*
95+
* @return bool true if verbosity is set to VERBOSITY_VERY_VERBOSE, false otherwise
96+
*/
97+
public function isVeryVerbose();
98+
99+
/**
100+
* Returns whether verbosity is debug (-vvv)
101+
*
102+
* @return bool true if verbosity is set to VERBOSITY_DEBUG, false otherwise
103+
*/
104+
public function isDebug();
105+
78106
/**
79107
* Sets the decorated flag.
80108
*

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy