芝麻web文件管理V1.00
编辑当前文件:/home/sditechnicalteam/public_html/vendor/webklex/php-imap/src/Traits/HasEvents.php
events[$section])) { $this->events[$section][$event] = $class; } } /** * Set all events * @param $events */ public function setEvents($events) { $this->events = $events; } /** * Get a specific event callback * @param $section * @param $event * * @return Event * @throws EventNotFoundException */ public function getEvent($section, $event) { if (isset($this->events[$section])) { return $this->events[$section][$event]; } throw new EventNotFoundException(); } /** * Get all events * * @return array */ public function getEvents(){ return $this->events; } }