LINE Messaging API SDK for PHP

EventRequestParser
in package

Tags
SuppressWarnings

(PHPMD.CouplingBetweenObjects)

Table of Contents

$contentType2class  : mixed
$eventType2class  : mixed
$messageType2class  : mixed
$moduleContentType2class  : mixed
$sourceType2class  : mixed
$thingsContentType2class  : mixed
parseEventRequest()  : ParsedEvents
parseEvent()  : Event
parseMessageContent()  : MessageContent
parseModuleContent()  : ModuleContent
parseSource()  : Source
parseThingsContent()  : ThingsContent

Properties

$contentType2class

private static mixed $contentType2class = ['postback' => \LINE\Webhook\Model\PostbackContent::class, 'beacon' => \LINE\Webhook\Model\BeaconContent::class, 'link' => \LINE\Webhook\Model\LinkContent::class, 'joined' => \LINE\Webhook\Model\JoinedMembers::class, 'left' => \LINE\Webhook\Model\LeftMembers::class, 'unsend' => \LINE\Webhook\Model\UnsendDetail::class, 'videoPlayComplete' => \LINE\Webhook\Model\VideoPlayComplete::class, 'chatControl' => \LINE\Webhook\Model\ChatControl::class, 'delivery' => \LINE\Webhook\Model\PnpDelivery::class]

$eventType2class

private static mixed $eventType2class = ['message' => \LINE\Webhook\Model\MessageEvent::class, 'unsend' => \LINE\Webhook\Model\UnsendEvent::class, 'follow' => \LINE\Webhook\Model\FollowEvent::class, 'unfollow' => \LINE\Webhook\Model\UnfollowEvent::class, 'join' => \LINE\Webhook\Model\JoinEvent::class, 'leave' => \LINE\Webhook\Model\LeaveEvent::class, 'postback' => \LINE\Webhook\Model\PostbackEvent::class, 'videoPlayComplete' => \LINE\Webhook\Model\VideoPlayCompleteEvent::class, 'beacon' => \LINE\Webhook\Model\BeaconEvent::class, 'accountLink' => \LINE\Webhook\Model\AccountLinkEvent::class, 'memberJoined' => \LINE\Webhook\Model\MemberJoinedEvent::class, 'memberLeft' => \LINE\Webhook\Model\MemberLeftEvent::class, 'things' => \LINE\Webhook\Model\ThingsEvent::class, 'module' => \LINE\Webhook\Model\ModuleEvent::class, 'activated' => \LINE\Webhook\Model\ActivatedEvent::class, 'deactivated' => \LINE\Webhook\Model\DeactivatedEvent::class, 'botSuspended' => \LINE\Webhook\Model\BotSuspendedEvent::class, 'botResumed' => \LINE\Webhook\Model\BotResumedEvent::class, 'delivery' => \LINE\Webhook\Model\PnpDeliveryCompletionEvent::class]

$messageType2class

private static mixed $messageType2class = ['text' => \LINE\Webhook\Model\TextMessageContent::class, 'image' => \LINE\Webhook\Model\ImageMessageContent::class, 'video' => \LINE\Webhook\Model\VideoMessageContent::class, 'audio' => \LINE\Webhook\Model\AudioMessageContent::class, 'file' => \LINE\Webhook\Model\FileMessageContent::class, 'location' => \LINE\Webhook\Model\LocationMessageContent::class, 'sticker' => \LINE\Webhook\Model\StickerMessageContent::class]

$moduleContentType2class

private static mixed $moduleContentType2class = ['attached' => \LINE\Webhook\Model\AttachedModuleContent::class, 'detached' => \LINE\Webhook\Model\DetachedModuleContent::class]

$sourceType2class

private static mixed $sourceType2class = ['user' => \LINE\Webhook\Model\UserSource::class, 'group' => \LINE\Webhook\Model\GroupSource::class, 'room' => \LINE\Webhook\Model\RoomSource::class]

$thingsContentType2class

private static mixed $thingsContentType2class = ['link' => \LINE\Webhook\Model\LinkThingsContent::class, 'unlink' => \LINE\Webhook\Model\UnlinkThingsContent::class, 'scenarioResult' => \LINE\Webhook\Model\ScenarioResultThingsContent::class]

Methods

parseSource()

private static parseSource(array<string|int, mixed> $eventData) : Source
Parameters
$eventData : array<string|int, mixed>
Return values
Source

Search results