[Console] reduced visibility to protected

This commit is contained in:
Kris Wallsmith 2012-06-08 14:18:51 -07:00
parent b84b46ba1a
commit d13dce0636
4 changed files with 4 additions and 4 deletions

View File

@ -28,7 +28,7 @@ class NullOutput extends Output
* @param string $message A message to write to the output * @param string $message A message to write to the output
* @param Boolean $newline Whether to add a newline or not * @param Boolean $newline Whether to add a newline or not
*/ */
public function doWrite($message, $newline) protected function doWrite($message, $newline)
{ {
} }
} }

View File

@ -176,5 +176,5 @@ abstract class Output implements OutputInterface
* @param string $message A message to write to the output * @param string $message A message to write to the output
* @param Boolean $newline Whether to add a newline or not * @param Boolean $newline Whether to add a newline or not
*/ */
abstract public function doWrite($message, $newline); abstract protected function doWrite($message, $newline);
} }

View File

@ -78,7 +78,7 @@ class StreamOutput extends Output
* *
* @throws \RuntimeException When unable to write output (should never happen) * @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 : ''))) { if (false === @fwrite($this->stream, $message.($newline ? PHP_EOL : ''))) {
// @codeCoverageIgnoreStart // @codeCoverageIgnoreStart

View File

@ -94,7 +94,7 @@ class TestOutput extends Output
$this->output = ''; $this->output = '';
} }
public function doWrite($message, $newline) protected function doWrite($message, $newline)
{ {
$this->output .= $message.($newline ? "\n" : ''); $this->output .= $message.($newline ? "\n" : '');
} }