Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[Console] reduced visibility to protected

  • Loading branch information...
commit afc5ecf2967bf3510363535c0389ddc0f6284784 1 parent e8824d0
Kris Wallsmith authored June 08, 2012
2  Output/NullOutput.php
@@ -28,7 +28,7 @@ class NullOutput extends Output
28 28
      * @param string  $message A message to write to the output
29 29
      * @param Boolean $newline Whether to add a newline or not
30 30
      */
31  
-    public function doWrite($message, $newline)
  31
+    protected function doWrite($message, $newline)
32 32
     {
33 33
     }
34 34
 }
2  Output/Output.php
@@ -176,5 +176,5 @@ public function write($messages, $newline = false, $type = 0)
176 176
      * @param string  $message A message to write to the output
177 177
      * @param Boolean $newline Whether to add a newline or not
178 178
      */
179  
-    abstract public function doWrite($message, $newline);
  179
+    abstract protected function doWrite($message, $newline);
180 180
 }
2  Output/StreamOutput.php
@@ -78,7 +78,7 @@ public function getStream()
78 78
      *
79 79
      * @throws \RuntimeException When unable to write output (should never happen)
80 80
      */
81  
-    public function doWrite($message, $newline)
  81
+    protected function doWrite($message, $newline)
82 82
     {
83 83
         if (false === @fwrite($this->stream, $message.($newline ? PHP_EOL : ''))) {
84 84
             // @codeCoverageIgnoreStart
2  Tests/Output/OutputTest.php
@@ -94,7 +94,7 @@ public function clear()
94 94
         $this->output = '';
95 95
     }
96 96
 
97  
-    public function doWrite($message, $newline)
  97
+    protected function doWrite($message, $newline)
98 98
     {
99 99
         $this->output .= $message.($newline ? "\n" : '');
100 100
     }

0 notes on commit afc5ecf

Please sign in to comment.
Something went wrong with that request. Please try again.