original_string: public function addListener(DBListener $listener, $name = null)
  	{
  		if($name !== null)
  			$this->listeners->offsetSet($name, $listener);
  		else
  			$this->listeners->append($listener);
  	}
code: public function addListener(DBListener $listener, $name = null)
  	{
  		if($name !== null)
  			$this->listeners->offsetSet($name, $listener);
  		else
  			$this->listeners->append($listener);
  	}
code_tokens: public function addListener ( DBListener $ listener , $ name = null ) { if ( $ name !== null ) $ this -> listeners -> offsetSet ( $ name , $ listener ) ; else $ this -> listeners -> append ( $ listener ) ; }
docstring: Adds a DBListener to listen on some events of the DB class
  @param DBListener $listener The listener object to register
  @param string $name The name of the listener [optional]
docstring_tokens: Adds a DBListener to listen on some events of the DB class