-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add stub for write and writeln console methods
- Loading branch information
1 parent
5f4d20e
commit b3df0da
Showing
3 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?php | ||
|
||
interface Stringable | ||
{ | ||
} |
30 changes: 30 additions & 0 deletions
30
stubs/Symfony/Component/Console/Output/OutputInterface.stub
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?php | ||
|
||
namespace Symfony\Component\Console\Output; | ||
|
||
use Stringable; | ||
|
||
interface OutputInterface | ||
{ | ||
public const VERBOSITY_QUIET = 16; | ||
public const VERBOSITY_NORMAL = 32; | ||
public const VERBOSITY_VERBOSE = 64; | ||
public const VERBOSITY_VERY_VERBOSE = 128; | ||
public const VERBOSITY_DEBUG = 256; | ||
|
||
public const OUTPUT_NORMAL = 1; | ||
public const OUTPUT_RAW = 2; | ||
public const OUTPUT_PLAIN = 4; | ||
|
||
/** | ||
* @param string|Stringable|iterable<string|Stringable> $messages | ||
* @param int-mask-of<self::VERBOSITY_*|self::OUTPUT_*> $options | ||
*/ | ||
public function write($messages, bool $newline = false, int $options = 0): void; | ||
|
||
/** | ||
* @param string|Stringable|iterable<string|Stringable> $messages | ||
* @param int-mask-of<self::VERBOSITY_*|self::OUTPUT_*> $options | ||
*/ | ||
public function writeln($messages, int $options = 0): void; | ||
} |