Remove the underscore prefix for names of private/protected fields.

This commit is contained in:
Daniele Alessandri
2011-11-25 12:25:33 +01:00
parent 5d42b41c22
commit 0fee0c6d97
37 changed files with 510 additions and 509 deletions
+5 -5
View File
@@ -33,26 +33,26 @@ $dispatcher = new Predis\DispatcherLoop($client);
// Demonstrate how to use a callable class as a callback for Predis\DispatcherLoop.
class EventsListener implements Countable
{
private $_events;
private $events;
public function __construct()
{
$this->_events = array();
$this->events = array();
}
public function count()
{
return count($this->_events);
return count($this->events);
}
public function getEvents()
{
return $this->_events;
return $this->events;
}
public function __invoke($payload)
{
$this->_events[] = $payload;
$this->events[] = $payload;
}
}