Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 9ff47b8

Browse filesBrowse 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
Copy full SHA for 9ff47b8

File tree

Expand file treeCollapse file tree

1 file changed

+28
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+28
-0
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Console/Output/OutputInterface.php
+28Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.