* $eventsManager->fire('db', $connection); * * * @param string $eventType * @param object $source * @param mixed $data * @param int $cancelable * @return mixed */ public function fire($eventType, $source, $data=null, $cancelable=null){ } /** * Check whether certain type of event has listeners * * @param string $type * @return boolean */ public function hasListeners($type){ } /** * Returns all the attached listeners of a certain type * * @param string $type * @return array */ public function getListeners($type){ } } }