1: <?php
2:
3: /**
4: * Copyright 2016 LINE Corporation
5: *
6: * LINE Corporation licenses this file to you under the Apache License,
7: * version 2.0 (the "License"); you may not use this file except in compliance
8: * with the License. You may obtain a copy of the License at:
9: *
10: * https://www.apache.org/licenses/LICENSE-2.0
11: *
12: * Unless required by applicable law or agreed to in writing, software
13: * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
14: * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
15: * License for the specific language governing permissions and limitations
16: * under the License.
17: */
18:
19: namespace LINE\LINEBot\Event\MessageEvent;
20:
21: use LINE\LINEBot\Event\MessageEvent;
22:
23: /**
24: * A class that represents the message event of sticker.
25: *
26: * @package LINE\LINEBot\Event\MessageEvent
27: */
28: class StickerMessage extends MessageEvent
29: {
30: /**
31: * StickerMessage constructor.
32: *
33: * @param array $event
34: */
35: public function __construct($event)
36: {
37: parent::__construct($event);
38: }
39:
40: /**
41: * Returns the identifier of the sticker package.
42: *
43: * @return string
44: */
45: public function getPackageId()
46: {
47: return $this->message['packageId'];
48: }
49:
50: /**
51: * Returns the identifier of the sticker.
52: *
53: * @return string
54: */
55: public function getStickerId()
56: {
57: return $this->message['stickerId'];
58: }
59: }
60: