Test Failed
Pull Request — master (#250)
by
unknown
02:27
created

Message::getPoll()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
ccs 2
cts 2
cp 1
cc 1
nc 1
nop 0
crap 1
1
<?php
2
namespace TelegramBot\Api\Types;
3
4
use TelegramBot\Api\BaseType;
5
use TelegramBot\Api\InvalidArgumentException;
6
use TelegramBot\Api\TypeInterface;
7
use TelegramBot\Api\Types\Inline\InlineKeyboardMarkup;
8
use TelegramBot\Api\Types\Payments\Invoice;
9
use TelegramBot\Api\Types\Payments\SuccessfulPayment;
10
11
class Message extends BaseType implements TypeInterface
12
{
13
    /**
14
     * {@inheritdoc}
15
     *
16
     * @var array
17
     */
18
    static protected $requiredParams = ['message_id', 'date', 'chat'];
19
20
    /**
21
     * {@inheritdoc}
22
     *
23
     * @var array
24
     */
25
    static protected $map = [
26
        'message_id' => true,
27
        'from' => User::class,
28
        'date' => true,
29
        'chat' => Chat::class,
30
        'forward_from' => User::class,
31
        'forward_from_chat' => Chat::class,
32
        'forward_from_message_id' => true,
33
        'forward_date' => true,
34
        'forward_signature' => true,
35
        'forward_sender_name' => true,
36
        'reply_to_message' => Message::class,
37
        'edit_date' => true,
38
        'media_group_id' => true,
39
        'author_signature' => true,
40
        'text' => true,
41
        'entities' => ArrayOfMessageEntity::class,
42
        'caption_entities' => ArrayOfMessageEntity::class,
43
        'audio' => Audio::class,
44
        'document' => Document::class,
45
        'animation' => Animation::class,
46
        'photo' => ArrayOfPhotoSize::class,
47
        'sticker' => Sticker::class,
48
        'video' => Video::class,
49
        'voice' => Voice::class,
50
        'caption' => true,
51
        'contact' => Contact::class,
52
        'location' => Location::class,
53
        'venue' => Venue::class,
54
        'poll' => Poll::class,
55
        'new_chat_members' => ArrayOfUser::class,
56
        'left_chat_member' => User::class,
57
        'new_chat_title' => true,
58
        'new_chat_photo' => ArrayOfPhotoSize::class,
59
        'delete_chat_photo' => true,
60
        'group_chat_created' => true,
61
        'supergroup_chat_created' => true,
62
        'channel_chat_created' => true,
63
        'migrate_to_chat_id' => true,
64
        'migrate_from_chat_id' => true,
65
        'pinned_message' => Message::class,
66
        'invoice' => Invoice::class,
67
        'successful_payment' => SuccessfulPayment::class,
68
        'connected_website' => true,
69
        'reply_markup' => InlineKeyboardMarkup::class,
70
    ];
71
72
    /**
73
     * Unique message identifier
74
     *
75
     * @var int
76
     */
77
    protected $messageId;
78
79
    /**
80
     * Optional. Sender name. Can be empty for messages sent to channels
81
     *
82
     * @var \TelegramBot\Api\Types\User
83
     */
84
    protected $from;
85
86
    /**
87
     * Date the message was sent in Unix time
88
     *
89
     * @var int
90
     */
91
    protected $date;
92
93
    /**
94
     * Conversation the message belongs to — user in case of a private message, GroupChat in case of a group
95
     *
96
     * @var \TelegramBot\Api\Types\Chat
97
     */
98
    protected $chat;
99
100
    /**
101
     * Optional. For forwarded messages, sender of the original message
102
     *
103
     * @var \TelegramBot\Api\Types\User
104
     */
105
    protected $forwardFrom;
106
107
    /**
108
     * Optional. For messages forwarded from channels, information about
109
     * the original channel
110
     *
111
     * @var \TelegramBot\Api\Types\Chat
112
     */
113
    protected $forwardFromChat;
114
115
    /**
116
     * Optional. For messages forwarded from channels, identifier of
117
     * the original message in the channel
118
     *
119
     * @var int
120
     */
121
    protected $forwardFromMessageId;
122
123
    /**
124
     * Optional. For messages forwarded from channels, signature of the post author if present
125
     *
126
     * @var string
127
     */
128
    protected $forwardSignature;
129
130
    /**
131
     * Optional. Sender's name for messages forwarded from users who disallow adding a link to their account
132
     * in forwarded messages
133
     *
134
     * @var string
135
     */
136
    protected $forwardSenderName;
137
138
    /**
139
     * Optional. For forwarded messages, date the original message was sent in Unix time
140
     *
141
     * @var int
142
     */
143
    protected $forwardDate;
144
145
    /**
146
     * Optional. For replies, the original message. Note that the Message object in this field will not contain further
147
     * reply_to_message fields even if it itself is a reply.
148
     *
149
     * @var \TelegramBot\Api\Types\Message
150
     */
151
    protected $replyToMessage;
152
153
    /**
154
     * Optional. Date the message was last edited in Unix time
155
     *
156
     * @var int
157
     */
158
    protected $editDate;
159
160
    /**
161
     * Optional. The unique identifier of a media message group
162
     * this message belongs to
163
     *
164
     * @var int
165
     */
166
    protected $mediaGroupId;
167
168
    /**
169
     * Optional. Signature of the post author for messages in channels
170
     *
171
     * @var string
172
     */
173
    protected $authorSignature;
174
175
    /**
176
     * Optional. For text messages, the actual UTF-8 text of the message
177
     *
178
     * @var string
179
     */
180
    protected $text;
181
182
    /**
183
     * Optional. For text messages, special entities like usernames, URLs, bot commands, etc. that appear in the text.
184
     * array of \TelegramBot\Api\Types\MessageEntity
185
     *
186
     * @var array
187
     */
188
    protected $entities;
189
190
    /**
191
     * Optional. For messages with a caption, special entities like usernames,
192
     * URLs, bot commands, etc. that appear in the caption
193
     *
194
     * @var ArrayOfMessageEntity
195
     */
196
    protected $captionEntities;
197
198
    /**
199
     * Optional. Message is an audio file, information about the file
200
     *
201
     * @var \TelegramBot\Api\Types\Audio
202
     */
203
    protected $audio;
204
205
    /**
206
     * Optional. Message is a general file, information about the file
207
     *
208
     * @var \TelegramBot\Api\Types\Document
209
     */
210
    protected $document;
211
212
    /**
213
     * Optional. Message is a animation, information about the animation
214
     *
215
     * @var \TelegramBot\Api\Types\Animation
216
     */
217
    protected $animation;
218
219
    /**
220
     * Optional. Message is a photo, available sizes of the photo
221
     * array of \TelegramBot\Api\Types\Photo
222
     *
223
     * @var array
224
     */
225
    protected $photo;
226
227
    /**
228
     * Optional. Message is a sticker, information about the sticker
229
     *
230
     * @var \TelegramBot\Api\Types\Sticker
231
     */
232
    protected $sticker;
233
234
    /**
235
     * Optional. Message is a video, information about the video
236
     *
237
     * @var \TelegramBot\Api\Types\Video
238
     */
239
    protected $video;
240
241
    /**
242
     * Optional. Message is a voice message, information about the file
243
     *
244
     * @var \TelegramBot\Api\Types\Voice
245
     */
246
    protected $voice;
247
248
    /**
249
     * Optional. Text description of the video (usually empty)
250
     *
251
     * @var string
252
     */
253
    protected $caption;
254
255
    /**
256
     * Optional. Message is a shared contact, information about the contact
257
     *
258
     * @var \TelegramBot\Api\Types\Contact
259
     */
260
    protected $contact;
261
262
    /**
263
     * Optional. Message is a shared location, information about the location
264
     *
265
     * @var \TelegramBot\Api\Types\Location
266
     */
267
    protected $location;
268
269
    /**
270
     * Optional. Message is a venue, information about the venue
271
     *
272
     * @var \TelegramBot\Api\Types\Venue
273
     */
274
    protected $venue;
275
276
    /**
277
     * Optional. Message is a native poll, information about the poll
278
     *
279
     * @var \TelegramBot\Api\Types\Poll
280
     */
281
    protected $poll;
282
283
    /**
284
     * Optional. New members that were added to the group or supergroup and information about them
285
     * (the bot itself may be one of these members)
286
     * array of \TelegramBot\Api\Types\User
287
     *
288
     * @var array
289
     */
290
    protected $newChatMembers;
291
292
    /**
293
     * Optional. A member was removed from the group, information about them (this member may be bot itself)
294
     *
295
     * @var \TelegramBot\Api\Types\User
296
     */
297
    protected $leftChatMember;
298
299
    /**
300
     * Optional. A group title was changed to this value
301
     *
302
     * @var string
303
     */
304
    protected $newChatTitle;
305
306
    /**
307
     * Optional. A group photo was change to this value
308
     *
309
     * @var mixed
310
     */
311
    protected $newChatPhoto;
312
313
    /**
314
     * Optional. Informs that the group photo was deleted
315
     *
316
     * @var bool
317
     */
318
    protected $deleteChatPhoto;
319
320
    /**
321
     * Optional. Informs that the group has been created
322
     *
323
     * @var bool
324
     */
325
    protected $groupChatCreated;
326
327
    /**
328
     * Optional. Service message: the supergroup has been created
329
     *
330
     * @var bool
331
     */
332
    protected $supergroupChatCreated;
333
334
    /**
335
     * Optional. Service message: the channel has been created
336
     *
337
     * @var bool
338
     */
339
    protected $channelChatCreated;
340
341
    /**
342
     * Optional. The group has been migrated to a supergroup with the specified identifier,
343
     * not exceeding 1e13 by absolute value
344
     *
345
     * @var int
346
     */
347
    protected $migrateToChatId;
348
349
    /**
350
     * Optional. The supergroup has been migrated from a group with the specified identifier,
351
     * not exceeding 1e13 by absolute value
352
     *
353
     * @var int
354
     */
355
    protected $migrateFromChatId;
356
357
    /**
358
     * Optional. Specified message was pinned.Note that the Message object in this field
359
     * will not contain further reply_to_message fields even if it is itself a reply.
360
     *
361
     * @var Message
362
     */
363
    protected $pinnedMessage;
364
365
    /**
366
     * Optional. Message is an invoice for a payment, information about the invoice.
367
     *
368
     * @var Invoice
369 1
     */
370
    protected $invoice;
371 1
372
    /**
373
     * Optional. Message is a service message about a successful payment, information about the payment.
374
     *
375
     * @var SuccessfulPayment
376
     */
377 2
    protected $successfulPayment;
378
379 2
    /**
380 2
     * Optional. The domain name of the website on which the user has logged in.
381
     *
382
     * @var string
383
     */
384
    protected $connectedWebsite;
385 1
386
    /**
387 1
     * Optional. Inline keyboard attached to the message. login_url buttons are represented as ordinary url buttons.
388
     *
389
     * @var InlineKeyboardMarkup
390
     */
391
    protected $replyMarkup;
392
393 2
    /**
394
     * @return int
395 2
     */
396 2
    public function getMessageId()
397
    {
398
        return $this->messageId;
399
    }
400
401 2
    /**
402
     * @param int $messageId
403 2
     *
404
     * @throws InvalidArgumentException
405
     */
406
    public function setMessageId($messageId)
407
    {
408
        if (is_integer($messageId) || is_float($messageId)) {
409 15
            $this->messageId = $messageId;
0 ignored issues
show
Documentation Bug introduced by
It seems like $messageId can also be of type double. However, the property $messageId is declared as type integer. Maybe add an additional type check?

Our type inference engine has found a suspicous assignment of a value to a property. This check raises an issue when a value that can be of a mixed type is assigned to a property that is type hinted more strictly.

For example, imagine you have a variable $accountId that can either hold an Id object or false (if there is no account id yet). Your code now assigns that value to the id property of an instance of the Account class. This class holds a proper account, so the id value must no longer be false.

Either this assignment is in error or a type check should be added for that assignment.

class Id
{
    public $id;

    public function __construct($id)
    {
        $this->id = $id;
    }

}

class Account
{
    /** @var  Id $id */
    public $id;
}

$account_id = false;

if (starsAreRight()) {
    $account_id = new Id(42);
}

$account = new Account();
if ($account instanceof Id)
{
    $account->id = $account_id;
}
Loading history...
410
        } else {
411 15
            throw new InvalidArgumentException();
412 15
        }
413
    }
414
415
    /**
416
     * @return User
417 1
     */
418
    public function getFrom()
419 1
    {
420
        return $this->from;
421
    }
422
423
    /**
424
     * @param User $from
425 2
     */
426
    public function setFrom(User $from)
427 2
    {
428 2
        $this->from = $from;
429
    }
430
431
    /**
432
     * @return Chat
433 1
     */
434
    public function getChat()
435 1
    {
436
        return $this->chat;
437
    }
438
439
    /**
440
     * @param Chat $chat
441
     */
442
    public function setChat(Chat $chat)
443 14
    {
444
        $this->chat = $chat;
445 14
    }
446 13
447 13
    /**
448 1
     * @return int
449
     */
450 13
    public function getDate()
451
    {
452
        return $this->date;
453
    }
454
455 1
    /**
456
     * @param int $date
457 1
     *
458
     * @throws InvalidArgumentException
459
     */
460
    public function setDate($date)
461
    {
462
        if (is_int($date)) {
463 2
            $this->date = $date;
464
        } else {
465 2
            throw new InvalidArgumentException();
466 2
        }
467
    }
468
469
    /**
470
     * @return User
471 1
     */
472
    public function getForwardFrom()
473 1
    {
474
        return $this->forwardFrom;
475
    }
476
477
    /**
478
     * @param User $forwardFrom
479 2
     */
480
    public function setForwardFrom(User $forwardFrom)
481 2
    {
482 2
        $this->forwardFrom = $forwardFrom;
483
    }
484
485
    /**
486
     * @return Chat
487 1
     */
488
    public function getForwardFromChat()
489 1
    {
490
        return $this->forwardFromChat;
491
    }
492
493
    /**
494
     * @param Chat $forwardFromChat
495
     */
496
    public function setForwardFromChat(Chat $forwardFromChat)
497 3
    {
498
        $this->forwardFromChat = $forwardFromChat;
499 3
    }
500 2
501 2
    /**
502 1
     * @return int
503
     */
504 2
    public function getForwardFromMessageId()
505
    {
506
        return $this->forwardFromMessageId;
507
    }
508
509 1
    /**
510
     * @param int $forwardFromMessageId
511 1
     */
512
    public function setForwardFromMessageId($forwardFromMessageId)
513
    {
514
        $this->forwardFromMessageId = $forwardFromMessageId;
515
    }
516
517 2
    /**
518
     * @return string
519 2
     */
520 2
    public function getForwardSignature()
521
    {
522
        return $this->forwardSignature;
523
    }
524
525
    /**
526
     * @param string $forwardSignature
527
     */
528
    public function setForwardSignature($forwardSignature)
529
    {
530
        $this->forwardSignature = $forwardSignature;
531
    }
532
533
    /**
534
     * @return string
535
     */
536
    public function getForwardSenderName()
537
    {
538
        return $this->forwardSenderName;
539
    }
540
541
    /**
542
     * @param string $forwardSenderName
543
     */
544
    public function setForwardSenderName($forwardSenderName)
545
    {
546
        $this->forwardSenderName = $forwardSenderName;
547
    }
548
549
    /**
550
     * @return int
551
     */
552
    public function getForwardDate()
553
    {
554
        return $this->forwardDate;
555
    }
556
557 1
    /**
558
     * @param int $forwardDate
559 1
     *
560
     * @throws InvalidArgumentException
561
     */
562
    public function setForwardDate($forwardDate)
563
    {
564
        if (is_int($forwardDate)) {
565 2
            $this->forwardDate = $forwardDate;
566
        } else {
567 2
            throw new InvalidArgumentException();
568 2
        }
569
    }
570
571
    /**
572
     * @return Message
573 1
     */
574
    public function getReplyToMessage()
575 1
    {
576
        return $this->replyToMessage;
577
    }
578
579
    /**
580
     * @param Message $replyToMessage
581 2
     */
582
    public function setReplyToMessage(Message $replyToMessage)
583 2
    {
584 2
        $this->replyToMessage = $replyToMessage;
585
    }
586
587
    /**
588
     * @return int
589 1
     */
590
    public function getEditDate()
591 1
    {
592
        return $this->editDate;
593
    }
594
595
    /**
596
     * @param int $editDate
597 2
     *
598
     * @throws InvalidArgumentException
599 2
     */
600 2
    public function setEditDate($editDate)
601
    {
602
        if (is_int($editDate)) {
603
            $this->editDate = $editDate;
604
        } else {
605
            throw new InvalidArgumentException();
606
        }
607
    }
608
609
    /**
610
     * @return int
611
     */
612
    public function getMediaGroupId()
613
    {
614
        return $this->mediaGroupId;
615
    }
616
617
    /**
618
     * @param int $mediaGroupId
619
     */
620
    public function setMediaGroupId($mediaGroupId)
621
    {
622
        $this->mediaGroupId = $mediaGroupId;
623
    }
624
625
    /**
626
     * @return string
627
     */
628
    public function getAuthorSignature()
629
    {
630
        return $this->authorSignature;
631
    }
632
633
    /**
634
     * @param string $authorSignature
635
     */
636
    public function setAuthorSignature($authorSignature)
637 1
    {
638
        $this->authorSignature = $authorSignature;
639 1
    }
640
641
    /**
642
     * @return string
643
     */
644
    public function getText()
645
    {
646
        return $this->text;
647 15
    }
648
649 15
    /**
650 14
     * @param string $text
651 14
     */
652 1
    public function setText($text)
653
    {
654 14
        $this->text = $text;
655
    }
656
657
    /**
658
     * @return array
659 1
     */
660
    public function getEntities()
661 1
    {
662
        return $this->entities;
663
    }
664
665
    /**
666
     * @param array $entities
667 2
     */
668
    public function setEntities($entities)
669 2
    {
670 2
        $this->entities = $entities;
671
    }
672
673
    /**
674
     * @return ArrayOfMessageEntity
675 1
     */
676
    public function getCaptionEntities()
677 1
    {
678
        return $this->captionEntities;
679
    }
680
681
    /**
682
     * @param ArrayOfMessageEntity $captionEntities
683 2
     */
684
    public function setCaptionEntities($captionEntities)
685 2
    {
686 2
        $this->captionEntities = $captionEntities;
687
    }
688
689
    /**
690
     * @return Audio
691 1
     */
692
    public function getAudio()
693 1
    {
694
        return $this->audio;
695
    }
696
697
    /**
698
     * @param Audio $audio
699 2
     */
700
    public function setAudio(Audio $audio)
701 2
    {
702 2
        $this->audio = $audio;
703
    }
704
705
    /**
706
     * @return Document
707 1
     */
708
    public function getDocument()
709 1
    {
710
        return $this->document;
711
    }
712
713
    /**
714
     * @param Document $document
715 2
     */
716
    public function setDocument($document)
717 2
    {
718 2
        $this->document = $document;
719
    }
720
721
    /**
722
     * @return Animation
723
     */
724
    public function getAnimation()
725
    {
726
        return $this->animation;
727
    }
728
729
    /**
730
     * @param Animation $animation
731
     */
732
    public function setAnimation(Animation $animation)
733
    {
734
        $this->animation = $animation;
735
    }
736
737
    /**
738
     * @return array
739 1
     */
740
    public function getPhoto()
741 1
    {
742
        return $this->photo;
743
    }
744
745
    /**
746
     * @param array $photo
747 2
     */
748
    public function setPhoto(array $photo)
749 2
    {
750 2
        $this->photo = $photo;
751
    }
752
753
    /**
754
     * @return Sticker
755 1
     */
756
    public function getSticker()
757 1
    {
758
        return $this->sticker;
759
    }
760
761
    /**
762
     * @param Sticker $sticker
763 2
     */
764
    public function setSticker(Sticker $sticker)
765 2
    {
766 2
        $this->sticker = $sticker;
767
    }
768
769
    /**
770
     * @return Video
771 7
     */
772
    public function getVideo()
773 7
    {
774
        return $this->video;
775
    }
776
777
    /**
778
     * @param Video $video
779 5
     */
780
    public function setVideo(Video $video)
781 5
    {
782 5
        $this->video = $video;
783
    }
784
785
    /**
786
     * @return Voice
787
     */
788
    public function getVoice()
789
    {
790
        return $this->voice;
791
    }
792
793
    /**
794
     * @param Voice $voice
795 1
     */
796
    public function setVoice($voice)
797 1
    {
798 1
        $this->voice = $voice;
799
    }
800
801
    /**
802
     * @return string
803 1
     */
804
    public function getCaption()
805 1
    {
806
        return $this->caption;
807
    }
808
809
    /**
810
     * @param string $caption
811 13
     */
812
    public function setCaption($caption)
813 13
    {
814 13
        $this->caption = $caption;
815
    }
816
817
    /**
818
     * @return Contact
819 1
     */
820
    public function getContact()
821 1
    {
822
        return $this->contact;
823
    }
824
825
    /**
826
     * @param Contact $contact
827 2
     */
828
    public function setContact(Contact $contact)
829 2
    {
830 2
        $this->contact = $contact;
831
    }
832
833
    /**
834
     * @return Location
835
     */
836
    public function getLocation()
837
    {
838
        return $this->location;
839
    }
840
841
    /**
842
     * @param Location $location
843
     */
844
    public function setLocation(Location $location)
845
    {
846
        $this->location = $location;
847
    }
848
849
    /**
850
     * @return Venue
851 1
     */
852
    public function getVenue()
853 1
    {
854
        return $this->venue;
855
    }
856
857
    /**
858
     * @param Venue $venue
859 2
     */
860
    public function setVenue($venue)
861 2
    {
862 2
        $this->venue = $venue;
863
    }
864
865
    /**
866
     * @return Poll
867 2
     */
868
    public function getPoll()
869 2
    {
870 2
        return $this->poll;
871
    }
872
873
    /**
874
     * @param Poll $poll
875 1
     */
876
    public function setPoll($poll)
877 1
    {
878
        $this->poll = $poll;
879
    }
880
881
    /**
882
     * @return array
883 2
     */
884
    public function getNewChatMembers()
885 2
    {
886 2
        return $this->newChatMembers;
887
    }
888
889
    /**
890
     * @param array $newChatMembers
891 1
     */
892
    public function setNewChatMembers($newChatMembers)
893 1
    {
894
        $this->newChatMembers = $newChatMembers;
895
    }
896
897
    /**
898
     * @return User
899 2
     */
900
    public function getLeftChatMember()
901 2
    {
902 2
        return $this->leftChatMember;
903
    }
904
905
    /**
906
     * @param User $leftChatMember
907 1
     */
908
    public function setLeftChatMember($leftChatMember)
909 1
    {
910
        $this->leftChatMember = $leftChatMember;
911
    }
912
913
    /**
914
     * @return string
915 4
     */
916
    public function getNewChatTitle()
917 4
    {
918 4
        return $this->newChatTitle;
919
    }
920
921
    /**
922
     * @param string $newChatTitle
923 1
     */
924
    public function setNewChatTitle($newChatTitle)
925 1
    {
926
        $this->newChatTitle = $newChatTitle;
927
    }
928
929
    /**
930
     * @return array
931
     */
932
    public function getNewChatPhoto()
933
    {
934
        return $this->newChatPhoto;
935
    }
936
937
    /**
938
     * @param array $newChatPhoto
939
     */
940
    public function setNewChatPhoto($newChatPhoto)
941
    {
942
        $this->newChatPhoto = $newChatPhoto;
943
    }
944
945
    /**
946
     * @return boolean
947
     */
948
    public function isDeleteChatPhoto()
949
    {
950
        return $this->deleteChatPhoto;
951
    }
952
953
    /**
954
     * @param boolean $deleteChatPhoto
955
     */
956
    public function setDeleteChatPhoto($deleteChatPhoto)
957
    {
958
        $this->deleteChatPhoto = (bool)$deleteChatPhoto;
959
    }
960
961
    /**
962
     * @return boolean
963
     */
964
    public function isGroupChatCreated()
965
    {
966
        return $this->groupChatCreated;
967
    }
968
969
    /**
970
     * @param boolean $groupChatCreated
971
     */
972
    public function setGroupChatCreated($groupChatCreated)
973
    {
974
        $this->groupChatCreated = (bool)$groupChatCreated;
975
    }
976
977
    /**
978
     * @return boolean
979
     */
980
    public function isSupergroupChatCreated()
981
    {
982
        return $this->supergroupChatCreated;
983
    }
984
985
    /**
986
     * @param boolean $supergroupChatCreated
987
     */
988
    public function setSupergroupChatCreated($supergroupChatCreated)
989
    {
990
        $this->supergroupChatCreated = $supergroupChatCreated;
991
    }
992
993
    /**
994
     * @return boolean
995
     */
996
    public function isChannelChatCreated()
997
    {
998
        return $this->channelChatCreated;
999
    }
1000
1001
    /**
1002
     * @param boolean $channelChatCreated
1003
     */
1004
    public function setChannelChatCreated($channelChatCreated)
1005
    {
1006
        $this->channelChatCreated = $channelChatCreated;
1007
    }
1008
1009
    /**
1010
     * @return int
1011
     */
1012
    public function getMigrateToChatId()
1013
    {
1014
        return $this->migrateToChatId;
1015
    }
1016
1017
    /**
1018
     * @param int $migrateToChatId
1019
     */
1020
    public function setMigrateToChatId($migrateToChatId)
1021
    {
1022
        $this->migrateToChatId = $migrateToChatId;
1023
    }
1024
1025
    /**
1026
     * @return int
1027
     */
1028
    public function getMigrateFromChatId()
1029
    {
1030
        return $this->migrateFromChatId;
1031
    }
1032
1033
    /**
1034
     * @param int $migrateFromChatId
1035
     */
1036
    public function setMigrateFromChatId($migrateFromChatId)
1037
    {
1038
        $this->migrateFromChatId = $migrateFromChatId;
1039
    }
1040
1041
    /**
1042
     * @return Message
1043
     */
1044
    public function getPinnedMessage()
1045
    {
1046
        return $this->pinnedMessage;
1047
    }
1048
1049
    /**
1050
     * @param Message $pinnedMessage
1051
     */
1052
    public function setPinnedMessage($pinnedMessage)
1053
    {
1054
        $this->pinnedMessage = $pinnedMessage;
1055
    }
1056
1057
    /**
1058
     * @author MY
1059
     * @return Invoice
1060
     */
1061
    public function getInvoice()
1062
    {
1063
        return $this->invoice;
1064
    }
1065
1066
    /**
1067
     * @author MY
1068
     * @param Invoice $invoice
1069
     */
1070
    public function setInvoice($invoice)
1071
    {
1072
        $this->invoice = $invoice;
1073
    }
1074
1075
    /**
1076
     * @author MY
1077
     * @return SuccessfulPayment
1078
     */
1079
    public function getSuccessfulPayment()
1080
    {
1081
        return $this->successfulPayment;
1082
    }
1083
1084
    /**
1085
     * @author MY
1086
     * @param SuccessfulPayment $successfulPayment
1087
     */
1088
    public function setSuccessfulPayment($successfulPayment)
1089
    {
1090
        $this->successfulPayment = $successfulPayment;
1091
    }
1092
1093
    /**
1094
     * @return string
1095
     */
1096
    public function getConnectedWebsite()
1097
    {
1098
        return $this->connectedWebsite;
1099
    }
1100
1101
    /**
1102
     * @param string $connectedWebsite
1103
     */
1104
    public function setConnectedWebsite($connectedWebsite)
1105
    {
1106
        $this->connectedWebsite = $connectedWebsite;
1107
    }
1108
1109
    /**
1110
     * @return InlineKeyboardMarkup
1111
     */
1112
    public function getReplyMarkup()
1113
    {
1114
        return $this->replyMarkup;
1115
    }
1116
1117
    /**
1118
     * @param InlineKeyboardMarkup $replyMarkup
1119
     */
1120
    public function setReplyMarkup($replyMarkup)
1121
    {
1122
        $this->replyMarkup = $replyMarkup;
1123
    }
1124
}
1125