Permalink
Browse files

[Console] reduced visibility to protected

  • Loading branch information...
1 parent e8824d0 commit afc5ecf2967bf3510363535c0389ddc0f6284784 @kriswallsmith kriswallsmith committed Jun 8, 2012
Showing with 4 additions and 4 deletions.
  1. +1 −1 Output/NullOutput.php
  2. +1 −1 Output/Output.php
  3. +1 −1 Output/StreamOutput.php
  4. +1 −1 Tests/Output/OutputTest.php
View
@@ -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)
{
}
}
View
@@ -176,5 +176,5 @@ public function write($messages, $newline = false, $type = 0)
* @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);
}
View
@@ -78,7 +78,7 @@ public function getStream()
*
* @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 @@ public function clear()
$this->output = '';
}
- public function doWrite($message, $newline)
+ protected function doWrite($message, $newline)
{
$this->output .= $message.($newline ? "\n" : '');
}

0 comments on commit afc5ecf

Please sign in to comment.