[Console] reduced visibility to protected
This commit is contained in:
parent
b84b46ba1a
commit
d13dce0636
@ -28,7 +28,7 @@ class NullOutput extends Output
|
||||
* @param string $message A message to write to the output
|
||||
* @param Boolean $newline Whether to add a newline or not
|
||||
*/
|
||||
public function doWrite($message, $newline)
|
||||
protected function doWrite($message, $newline)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
@ -176,5 +176,5 @@ abstract class Output implements OutputInterface
|
||||
* @param string $message A message to write to the output
|
||||
* @param Boolean $newline Whether to add a newline or not
|
||||
*/
|
||||
abstract public function doWrite($message, $newline);
|
||||
abstract protected function doWrite($message, $newline);
|
||||
}
|
||||
|
@ -78,7 +78,7 @@ class StreamOutput extends Output
|
||||
*
|
||||
* @throws \RuntimeException When unable to write output (should never happen)
|
||||
*/
|
||||
public function doWrite($message, $newline)
|
||||
protected function doWrite($message, $newline)
|
||||
{
|
||||
if (false === @fwrite($this->stream, $message.($newline ? PHP_EOL : ''))) {
|
||||
// @codeCoverageIgnoreStart
|
||||
|
@ -94,7 +94,7 @@ class TestOutput extends Output
|
||||
$this->output = '';
|
||||
}
|
||||
|
||||
public function doWrite($message, $newline)
|
||||
protected function doWrite($message, $newline)
|
||||
{
|
||||
$this->output .= $message.($newline ? "\n" : '');
|
||||
}
|
||||
|
Reference in New Issue
Block a user