Commit 9975da23 authored by pookey's avatar pookey

fixes #92 and reverts a function name change I did for no reason (and third...

fixes #92 and reverts a function name change I did for no reason (and third test of post-commit script...)
parent 3db504e8
......@@ -12,7 +12,7 @@ class Doctrine_EventListener_Chain extends Doctrine_Access {
* @param Doctrine_EventListener $listener
* @return void
*/
public function addListener(Doctrine_EventListener $listener) {
public function add(Doctrine_EventListener $listener) {
$this->listeners[] = $listener;
}
/**
......@@ -22,7 +22,7 @@ class Doctrine_EventListener_Chain extends Doctrine_Access {
* @param mixed $key
* @return mixed
*/
public function getListener($key) {
public function get($key) {
if( ! isset($this->listeners[$key]))
return null;
......@@ -35,7 +35,7 @@ class Doctrine_EventListener_Chain extends Doctrine_Access {
* @param Doctrine_EventListener $listener
* @return void
*/
public function setListener($key, Doctrine_EventListener $listener) {
public function set($key, Doctrine_EventListener $listener) {
$this->listeners[$key] = $listener;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment