function getEvent(string $name) {
        if(isset($this->wsevents[$name])) {
            return $this->wsevents[$name];
        }
        
        throw new \Exception('Unable to find WS event');
    }
function getEvent(string $name) {
        if(isset($this->wsevents[$name])) {
            return $this->wsevents[$name];
        }
        
        throw new \Exception('Unable to find WS event');
    }
function getEvent ( string $ name ) { if ( isset ( $ this -> wsevents [ $ name ] ) ) { return $ this -> wsevents [ $ name ] ; } throw new \ Exception ( 'Unable to find WS event' ) ; }
Returns a WS event.
@return \CharlotteDunois\Yasmin\Interfaces\WSEventInterface
Returns a WS event .