Menu

## EventRequestParser
in package

EventRequestParser.php : 28

### Table of Contents

$eventType2class : mixed
$messageType2class : mixed
parseEventRequest() : mixed
parseMessageEvent() : MessageEvent

### Properties

#### $eventType2class

EventRequestParser.php : 30
`private static mixed $eventType2class = ['message' => 'LINE\LINEBot\Event\MessageEvent', 'unsend' => 'LINE\LINEBot\Event\UnsendEvent', 'follow' => 'LINE\LINEBot\Event\FollowEvent', 'unfollow' => 'LINE\LINEBot\Event\UnfollowEvent', 'join' => 'LINE\LINEBot\Event\JoinEvent', 'leave' => 'LINE\LINEBot\Event\LeaveEvent', 'postback' => 'LINE\LINEBot\Event\PostbackEvent', 'videoPlayComplete' => 'LINE\LINEBot\Event\VideoPlayCompleteEvent', 'beacon' => 'LINE\LINEBot\Event\BeaconDetectionEvent', 'accountLink' => 'LINE\LINEBot\Event\AccountLinkEvent', 'memberJoined' => 'LINE\LINEBot\Event\MemberJoinEvent', 'memberLeft' => 'LINE\LINEBot\Event\MemberLeaveEvent', 'things' => 'LINE\LINEBot\Event\ThingsEvent']`

#### $messageType2class

EventRequestParser.php : 46
`private static mixed $messageType2class = ['text' => 'LINE\LINEBot\Event\MessageEvent\TextMessage', 'image' => 'LINE\LINEBot\Event\MessageEvent\ImageMessage', 'video' => 'LINE\LINEBot\Event\MessageEvent\VideoMessage', 'audio' => 'LINE\LINEBot\Event\MessageEvent\AudioMessage', 'file' => 'LINE\LINEBot\Event\MessageEvent\FileMessage', 'location' => 'LINE\LINEBot\Event\MessageEvent\LocationMessage', 'sticker' => 'LINE\LINEBot\Event\MessageEvent\StickerMessage']`

### Methods

#### parseEventRequest()

EventRequestParser.php : 64
`public static parseEventRequest(string $body, string $channelSecret, string $signature[, mixed $eventsOnly = true ]) : mixed`

##### Parameters

$body : string
$channelSecret : string
$signature : string
$eventsOnly : mixed = true

##### Tags

throws
  InvalidEventRequestException
throws
  InvalidSignatureException

##### Return values

mixed —

#### parseMessageEvent()

EventRequestParser.php : 116
`private static parseMessageEvent(array<string|int, mixed> $eventData) : MessageEvent`

##### Parameters

$eventData : array<string|int, mixed>

##### Return values

MessageEvent —

## Search results