BaseEvent

Base class of each events. Don't instantiate this class individually.

Known subclasses

LINE\LINEBot\Event\AccountLinkEvent, LINE\LINEBot\Event\BeaconDetectionEvent, LINE\LINEBot\Event\FollowEvent, LINE\LINEBot\Event\JoinEvent, LINE\LINEBot\Event\LeaveEvent, LINE\LINEBot\Event\MemberJoinEvent, LINE\LINEBot\Event\MemberLeaveEvent, LINE\LINEBot\Event\MessageEvent, LINE\LINEBot\Event\MessageEvent\AudioMessage, LINE\LINEBot\Event\MessageEvent\FileMessage, LINE\LINEBot\Event\MessageEvent\ImageMessage, LINE\LINEBot\Event\MessageEvent\LocationMessage, LINE\LINEBot\Event\MessageEvent\StickerMessage, LINE\LINEBot\Event\MessageEvent\TextMessage, LINE\LINEBot\Event\MessageEvent\UnknownMessage, LINE\LINEBot\Event\MessageEvent\VideoMessage, LINE\LINEBot\Event\PostbackEvent, LINE\LINEBot\Event\ThingsEvent, LINE\LINEBot\Event\UnfollowEvent, LINE\LINEBot\Event\UnknownEvent
Methods Summary
public
# __construct( array $event )
BaseEvent constructor.
public
# getType( )
Returns event type.
public
# getMode( )
Returns mode. active: The channel is active. standby: The channel is waiting.
public
# getTimestamp( )
Returns timestamp of the event.
public
# getReplyToken( )
Returns reply token of the event.
public
# isUserEvent( )
Returns the event is user's one or not.
public
# isGroupEvent( )
Returns the event is group's one or not.
public
# isRoomEvent( )
Returns the event is room's one or not.
public
# isUnknownEvent( )
Returns the event is unknown or not.
public
# getUserId( )
Returns user ID of the event.
public
# getGroupId( )
Returns group ID of the event.
public
# getRoomId( )
Returns room ID of the event.
public
# getEventSourceId( )
Returns the identifier of the event source that associated with event source type (i.e. userId, groupId or roomId).
Properties Summary
protected array $event

# NULL