1
0
mirror of synced 2024-12-13 14:56:01 +03:00

fixes #92 and reverts a function name change I did for no reason (and third test of post-commit script...)

This commit is contained in:
pookey 2006-09-21 14:42:27 +00:00
parent 3db504e899
commit 9975da2359

View File

@ -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;
}