src/LINEBot/Event/BaseEvent.php
public function getRoomId()
    {
        if (!$this->isRoomEvent()) {
            throw new InvalidEventSourceException('This event source is not a room type');
        }
        return isset($this->event['source']['roomId'])
            ? $this->event['source']['roomId']
            : null;
    }
public function getRoomId()
    {
        if (!$this->isRoomEvent()) {
            throw new InvalidEventSourceException('This event source is not a room type');
        }
        return isset($this->event['source']['roomId'])
            ? $this->event['source']['roomId']
            : null;
    }
public function getRoomId ( ) { if ( ! $ this -> isRoomEvent ( ) ) { throw new InvalidEventSourceException ( 'This event source is not a room type' ) ; } return isset ( $ this -> event [ 'source' ] [ 'roomId' ] ) ? $ this -> event [ 'source' ] [ 'roomId' ] : null ; }
Returns room ID of the event.

@return string|null
@throws InvalidEventSourceException Raise when called with non room type event.
Returns room ID of the event .