Completed
Push — master ( 573b05...c1766c )
by Gusev
15:02 queued 12:38
created

Message::setVideo()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
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\Payments\Invoice;
8
use TelegramBot\Api\Types\Payments\SuccessfulPayment;
9
10
class Message extends BaseType implements TypeInterface
11
{
12
    /**
13
     * {@inheritdoc}
14
     *
15
     * @var array
16
     */
17
    static protected $requiredParams = ['message_id', 'date', 'chat'];
18
19
    /**
20
     * {@inheritdoc}
21
     *
22
     * @var array
23
     */
24
    static protected $map = [
25
        'message_id' => true,
26
        'from' => User::class,
27
        'date' => true,
28
        'chat' => Chat::class,
29
        'forward_from' => User::class,
30
        'forward_from_chat' => Chat::class,
31
        'forward_from_message_id' => true,
32
        'forward_date' => true,
33
        'reply_to_message' => Message::class,
34
        'text' => true,
35
        'entities' => ArrayOfMessageEntity::class,
36
        'caption_entities' => ArrayOfMessageEntity::class,
37
        'audio' => Audio::class,
38
        'document' => Document::class,
39
        'photo' => ArrayOfPhotoSize::class,
40
        'media_group_id' => true,
41
        'sticker' => Sticker::class,
42
        'video' => Video::class,
43
        'animation' => Animation::class,
44
        'voice' => Voice::class,
45
        'caption' => true,
46
        'contact' => Contact::class,
47
        'location' => Location::class,
48
        'venue' => Venue::class,
49
        'new_chat_member' => User::class,
50
        'left_chat_member' => User::class,
51
        'new_chat_title' => true,
52
        'new_chat_photo' => ArrayOfPhotoSize::class,
53
        'delete_chat_photo' => true,
54
        'group_chat_created' => true,
55
        'supergroup_chat_created' => true,
56
        'channel_chat_created' => true,
57
        'migrate_to_chat_id' => true,
58
        'migrate_from_chat_id' => true,
59
        'pinned_message' => Message::class,
60
        'invoice' => Invoice::class,
61
        'successful_payment' => SuccessfulPayment::class,
62
        'forward_signature' => true,
63
        'author_signature' => true,
64
        'connected_website' => true
65
    ];
66
67
    /**
68
     * Unique message identifier
69
     *
70
     * @var int
71
     */
72
    protected $messageId;
73
74
    /**
75
     * Optional. Sender name. Can be empty for messages sent to channels
76
     *
77
     * @var \TelegramBot\Api\Types\User
78
     */
79
    protected $from;
80
81
    /**
82
     * Date the message was sent in Unix time
83
     *
84
     * @var int
85
     */
86
    protected $date;
87
88
    /**
89
     * Conversation the message belongs to — user in case of a private message, GroupChat in case of a group
90
     *
91
     * @var \TelegramBot\Api\Types\Chat
92
     */
93
    protected $chat;
94
95
    /**
96
     * Optional. For forwarded messages, sender of the original message
97
     *
98
     * @var \TelegramBot\Api\Types\User
99
     */
100
    protected $forwardFrom;
101
102
    /**
103
     * Optional. For messages forwarded from channels, information about
104
     * the original channel
105
     *
106
     * @var \TelegramBot\Api\Types\Chat
107
     */
108
    protected $forwardFromChat;
109
110
    /**
111
     * Optional. For messages forwarded from channels, identifier of
112
     * the original message in the channel
113
     *
114
     * @var int
115
     */
116
    protected $forwardFromMessageId;
117
118
    /**
119
     * Optional. For forwarded messages, date the original message was sent in Unix time
120
     *
121
     * @var int
122
     */
123
    protected $forwardDate;
124
125
    /**
126
     * Optional. For replies, the original message. Note that the Message object in this field will not contain further
127
     * reply_to_message fields even if it itself is a reply.
128
     *
129
     * @var \TelegramBot\Api\Types\Message
130
     */
131
    protected $replyToMessage;
132
133
    /**
134
     * Optional. For text messages, the actual UTF-8 text of the message
135
     *
136
     * @var string
137
     */
138
    protected $text;
139
140
    /**
141
     * Optional. For text messages, special entities like usernames, URLs, bot commands, etc. that appear in the text.
142
     * array of \TelegramBot\Api\Types\MessageEntity
143
     *
144
     * @var array
145
     */
146
    protected $entities;
147
148
    /**
149
     * Optional. Message is an audio file, information about the file
150
     *
151
     * @var \TelegramBot\Api\Types\Audio
152
     */
153
    protected $audio;
154
155
    /**
156
     * Optional. Message is a general file, information about the file
157
     *
158
     * @var \TelegramBot\Api\Types\Document
159
     */
160
    protected $document;
161
162
    /**
163
     * Optional. Message is a photo, available sizes of the photo
164
     * array of \TelegramBot\Api\Types\Photo
165
     *
166
     * @var array
167
     */
168
    protected $photo;
169
170
    /**
171
     * Optional. The unique identifier of a media message group
172
     * this message belongs to
173
     *
174
     * @var int
175
     */
176
    protected $mediaGroupId;
177
178
    /**
179
     * Optional. Message is a sticker, information about the sticker
180
     *
181
     * @var \TelegramBot\Api\Types\Sticker
182
     */
183
    protected $sticker;
184
185
    /**
186
     * Optional. Message is a video, information about the video
187
     *
188
     * @var \TelegramBot\Api\Types\Video
189
     */
190
    protected $video;
191
    
192
    /**
193
     * Optional. Message is a animation, information about the animation
194
     *
195
     * @var \TelegramBot\Api\Types\Animation
196
     */
197
    protected $animation;
198
199
    /**
200
     * Optional. Message is a voice message, information about the file
201
     *
202
     * @var \TelegramBot\Api\Types\Voice
203
     */
204
    protected $voice;
205
206
    /**
207
     * Optional. Message is a shared contact, information about the contact
208
     *
209
     * @var \TelegramBot\Api\Types\Contact
210
     */
211
    protected $contact;
212
213
    /**
214
     * Optional. Message is a shared location, information about the location
215
     *
216
     * @var \TelegramBot\Api\Types\Location
217
     */
218
    protected $location;
219
220
    /**
221
     * Optional. Message is a venue, information about the venue
222
     *
223
     * @var \TelegramBot\Api\Types\Venue
224
     */
225
    protected $venue;
226
227
    /**
228
     * Optional. A new member was added to the group, information about them (this member may be bot itself)
229
     *
230
     * @var \TelegramBot\Api\Types\User
231
     */
232
    protected $newChatMember;
233
234
    /**
235
     * Optional. A member was removed from the group, information about them (this member may be bot itself)
236
     *
237
     * @var \TelegramBot\Api\Types\User
238
     */
239
    protected $leftChatMember;
240
241
    /**
242
     * Optional. A group title was changed to this value
243
     *
244
     * @var string
245
     */
246
    protected $newChatTitle;
247
248
    /**
249
     * Optional. A group photo was change to this value
250
     *
251
     * @var mixed
252
     */
253
    protected $newChatPhoto;
254
255
    /**
256
     * Optional. Informs that the group photo was deleted
257
     *
258
     * @var bool
259
     */
260
    protected $deleteChatPhoto;
261
262
    /**
263
     * Optional. Informs that the group has been created
264
     *
265
     * @var bool
266
     */
267
    protected $groupChatCreated;
268
269
    /**
270
     * Optional. Text description of the video (usually empty)
271
     *
272
     * @var string
273
     */
274
    protected $caption;
275
276
277
    /**
278
     * Optional. Service message: the supergroup has been created
279
     *
280
     * @var bool
281
     */
282
    protected $supergroupChatCreated;
283
284
    /**
285
     * Optional. Service message: the channel has been created
286
     *
287
     * @var bool
288
     */
289
    protected $channelChatCreated;
290
291
    /**
292
     * Optional. The group has been migrated to a supergroup with the specified identifier,
293
     * not exceeding 1e13 by absolute value
294
     *
295
     * @var int
296
     */
297
    protected $migrateToChatId;
298
299
    /**
300
     * Optional. The supergroup has been migrated from a group with the specified identifier,
301
     * not exceeding 1e13 by absolute value
302
     *
303
     * @var int
304
     */
305
    protected $migrateFromChatId;
306
307
    /**
308
     * Optional. Specified message was pinned.Note that the Message object in this field
309
     * will not contain further reply_to_message fields even if it is itself a reply.
310
     *
311
     * @var Message
312
     */
313
    protected $pinnedMessage;
314
315
    /**
316
     * Optional. Message is an invoice for a payment, information about the invoice.
317
     *
318
     * @var Invoice
319
     */
320
    protected $invoice;
321
322
    /**
323
     * Optional. Message is a service message about a successful payment, information about the payment.
324
     *
325
     * @var SuccessfulPayment
326
     */
327
    protected $successfulPayment;
328
329
    /**
330
     * Optional. For messages forwarded from channels, signature of the post author if present
331
     *
332
     * @var string
333
     */
334
    protected $forwardSignature;
335
336
    /**
337
     * Optional. Signature of the post author for messages in channels
338
     *
339
     * @var string
340
     */
341
    protected $authorSignature;
342
343
    /**
344
     * Optional. For messages with a caption, special entities like usernames,
345
     * URLs, bot commands, etc. that appear in the caption
346
     *
347
     * @var ArrayOfMessageEntity
348
     */
349
    protected $captionEntities;
350
351
    /**
352
     * Optional. The domain name of the website on which the user has logged in.
353
     *
354
     * @var string
355
     */
356
    protected $connectedWebsite;
357
358
    /**
359
     * @return string
360
     */
361 1
    public function getCaption()
362
    {
363 1
        return $this->caption;
364
    }
365
366
    /**
367
     * @param string $caption
368
     */
369 2
    public function setCaption($caption)
370
    {
371 2
        $this->caption = $caption;
372 2
    }
373
374
    /**
375
     * @return Audio
376
     */
377 1
    public function getAudio()
378
    {
379 1
        return $this->audio;
380
    }
381
382
    /**
383
     * @param Audio $audio
384
     */
385 2
    public function setAudio(Audio $audio)
386
    {
387 2
        $this->audio = $audio;
388 2
    }
389
390
    /**
391
     * @return Chat
392
     */
393 2
    public function getChat()
394
    {
395 2
        return $this->chat;
396
    }
397
398
    /**
399
     * @param Chat $chat
400
     */
401 15
    public function setChat(Chat $chat)
402
    {
403 15
        $this->chat = $chat;
404 15
    }
405
406
    /**
407
     * @return Contact
408
     */
409 1
    public function getContact()
410
    {
411 1
        return $this->contact;
412
    }
413
414
    /**
415
     * @param Contact $contact
416
     */
417 2
    public function setContact(Contact $contact)
418
    {
419 2
        $this->contact = $contact;
420 2
    }
421
422
    /**
423
     * @return int
424
     */
425 1
    public function getDate()
426
    {
427 1
        return $this->date;
428
    }
429
430
    /**
431
     * @param int $date
432
     *
433
     * @throws InvalidArgumentException
434
     */
435 14
    public function setDate($date)
436
    {
437 14
        if (is_integer($date)) {
438 13
            $this->date = $date;
439 13
        } else {
440 1
            throw new InvalidArgumentException();
441
        }
442 13
    }
443
444
    /**
445
     * @return boolean
446
     */
447 1
    public function isDeleteChatPhoto()
448
    {
449 1
        return $this->deleteChatPhoto;
450
    }
451
452
    /**
453
     * @param boolean $deleteChatPhoto
454
     */
455 2
    public function setDeleteChatPhoto($deleteChatPhoto)
456
    {
457 2
        $this->deleteChatPhoto = (bool)$deleteChatPhoto;
458 2
    }
459
460
    /**
461
     * @return Document
462
     */
463 1
    public function getDocument()
464
    {
465 1
        return $this->document;
466
    }
467
468
    /**
469
     * @param Document $document
470
     */
471 2
    public function setDocument($document)
472
    {
473 2
        $this->document = $document;
474 2
    }
475
476
    /**
477
     * @return int
478
     */
479 1
    public function getForwardDate()
480
    {
481 1
        return $this->forwardDate;
482
    }
483
484
    /**
485
     * @param int $forwardDate
486
     *
487
     * @throws InvalidArgumentException
488
     */
489 3
    public function setForwardDate($forwardDate)
490
    {
491 3
        if (is_integer($forwardDate)) {
492 2
            $this->forwardDate = $forwardDate;
493 2
        } else {
494 1
            throw new InvalidArgumentException();
495
        }
496 2
    }
497
498
    /**
499
     * @return User
500
     */
501 1
    public function getForwardFrom()
502
    {
503 1
        return $this->forwardFrom;
504
    }
505
506
    /**
507
     * @param User $forwardFrom
508
     */
509 2
    public function setForwardFrom(User $forwardFrom)
510
    {
511 2
        $this->forwardFrom = $forwardFrom;
512 2
    }
513
514
    /**
515
     * @return Chat
516
     */
517
    public function getForwardFromChat()
518
    {
519
        return $this->forwardFromChat;
520
    }
521
522
    /**
523
     * @param Chat $forwardFromChat
524
     */
525
    public function setForwardFromChat(Chat $forwardFromChat)
526
    {
527
        $this->forwardFromChat = $forwardFromChat;
528
    }
529
530
    /**
531
     * @return int
532
     */
533
    public function getForwardFromMessageId()
534
    {
535
        return $this->forwardFromMessageId;
536
    }
537
538
    /**
539
     * @param int $forwardFromMessageId
540
     */
541
    public function setForwardFromMessageId($forwardFromMessageId)
542
    {
543
        $this->forwardFromMessageId = $forwardFromMessageId;
544
    }
545
546
    /**
547
     * @return boolean
548
     */
549 1
    public function isGroupChatCreated()
550
    {
551 1
        return $this->groupChatCreated;
552
    }
553
554
    /**
555
     * @param boolean $groupChatCreated
556
     */
557 2
    public function setGroupChatCreated($groupChatCreated)
558
    {
559 2
        $this->groupChatCreated = (bool)$groupChatCreated;
560 2
    }
561
562
    /**
563
     * @return User
564
     */
565 1
    public function getLeftChatMember()
566
    {
567 1
        return $this->leftChatMember;
568
    }
569
570
    /**
571
     * @param User $leftChatMember
572
     */
573 2
    public function setLeftChatMember($leftChatMember)
574
    {
575 2
        $this->leftChatMember = $leftChatMember;
576 2
    }
577
578
    /**
579
     * @return Location
580
     */
581 1
    public function getLocation()
582
    {
583 1
        return $this->location;
584
    }
585
586
    /**
587
     * @param Location $location
588
     */
589 2
    public function setLocation(Location $location)
590
    {
591 2
        $this->location = $location;
592 2
    }
593
594
    /**
595
     * @return Venue
596
     */
597
    public function getVenue()
598
    {
599
        return $this->venue;
600
    }
601
602
    /**
603
     * @param Venue $venue
604
     */
605
    public function setVenue($venue)
606
    {
607
        $this->venue = $venue;
608
    }
609
610
    /**
611
     * @return int
612
     */
613 1
    public function getMessageId()
614
    {
615 1
        return $this->messageId;
616
    }
617
618
    /**
619
     * @param int $messageId
620
     *
621
     * @throws InvalidArgumentException
622
     */
623 15
    public function setMessageId($messageId)
624
    {
625 15
        if (is_integer($messageId) || is_float($messageId)) {
626 14
            $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...
627 14
        } else {
628 1
            throw new InvalidArgumentException();
629
        }
630 14
    }
631
632
    /**
633
     * @return User
634
     */
635 1
    public function getNewChatMember()
636
    {
637 1
        return $this->newChatMember;
638
    }
639
640
    /**
641
     * @param User $newChatMember
642
     */
643 2
    public function setNewChatMember($newChatMember)
644
    {
645 2
        $this->newChatMember = $newChatMember;
646 2
    }
647
648
    /**
649
     * @return array
650
     */
651 1
    public function getNewChatPhoto()
652
    {
653 1
        return $this->newChatPhoto;
654
    }
655
656
    /**
657
     * @param array $newChatPhoto
658
     */
659 2
    public function setNewChatPhoto($newChatPhoto)
660
    {
661 2
        $this->newChatPhoto = $newChatPhoto;
662 2
    }
663
664
    /**
665
     * @return string
666
     */
667 1
    public function getNewChatTitle()
668
    {
669 1
        return $this->newChatTitle;
670
    }
671
672
    /**
673
     * @param string $newChatTitle
674
     */
675 2
    public function setNewChatTitle($newChatTitle)
676
    {
677 2
        $this->newChatTitle = $newChatTitle;
678 2
    }
679
680
    /**
681
     * @return array
682
     */
683 1
    public function getPhoto()
684
    {
685 1
        return $this->photo;
686
    }
687
688
    /**
689
     * @param array $photo
690
     */
691 2
    public function setPhoto(array $photo)
692
    {
693 2
        $this->photo = $photo;
694 2
    }
695
696
    /**
697
     * @return int
698
     */
699
    public function getMediaGroupId()
700
    {
701
        return $this->mediaGroupId;
702
    }
703
704
    /**
705
     * @param int $mediaGroupId
706
     */
707
    public function setMediaGroupId($mediaGroupId)
708
    {
709
        $this->mediaGroupId = $mediaGroupId;
710
    }
711
712
    /**
713
     * @return Message
714
     */
715 1
    public function getReplyToMessage()
716
    {
717 1
        return $this->replyToMessage;
718
    }
719
720
    /**
721
     * @param Message $replyToMessage
722
     */
723 2
    public function setReplyToMessage(Message $replyToMessage)
724
    {
725 2
        $this->replyToMessage = $replyToMessage;
726 2
    }
727
728
    /**
729
     * @return Sticker
730
     */
731 1
    public function getSticker()
732
    {
733 1
        return $this->sticker;
734
    }
735
736
    /**
737
     * @param Sticker $sticker
738
     */
739 2
    public function setSticker(Sticker $sticker)
740
    {
741 2
        $this->sticker = $sticker;
742 2
    }
743
744
    /**
745
     * @return string
746
     */
747 7
    public function getText()
748
    {
749 7
        return $this->text;
750
    }
751
752
    /**
753
     * @param string $text
754
     */
755 5
    public function setText($text)
756
    {
757 5
        $this->text = $text;
758 5
    }
759
760
    /**
761
     * @return array
762
     */
763
    public function getEntities()
764
    {
765
        return $this->entities;
766
    }
767
768
    /**
769
     * @param array $entities
770
     */
771 1
    public function setEntities($entities)
772
    {
773 1
        $this->entities = $entities;
774 1
    }
775
776
    /**
777
     * @return User
778
     */
779 1
    public function getFrom()
780
    {
781 1
        return $this->from;
782
    }
783
784
    /**
785
     * @param User $from
786
     */
787 13
    public function setFrom(User $from)
788
    {
789 13
        $this->from = $from;
790 13
    }
791
792
    /**
793
     * @return Video
794
     */
795 1
    public function getVideo()
796
    {
797 1
        return $this->video;
798
    }
799
800
    /**
801
     * @param Video $video
802
     */
803 2
    public function setVideo(Video $video)
804
    {
805 2
        $this->video = $video;
806 2
    }
807
    
808
    /**
809
     * @return Animation
810
     */
811
    public function getAnimation()
812
    {
813
        return $this->animation;
814
    }
815
816
    /**
817
     * @param Animation $animation
818
     */
819
    public function setAnimation(Animation $animation)
820
    {
821
        $this->animation = $animation;
822
    }
823
824
    /**
825
     * @return Voice
826
     */
827 1
    public function getVoice()
828
    {
829 1
        return $this->voice;
830
    }
831
832
    /**
833
     * @param Voice $voice
834
     */
835 2
    public function setVoice($voice)
836
    {
837 2
        $this->voice = $voice;
838 2
    }
839
840
    /**
841
     * @param boolean $supergroupChatCreated
842
     */
843 2
    public function setSupergroupChatCreated($supergroupChatCreated)
844
    {
845 2
        $this->supergroupChatCreated = $supergroupChatCreated;
846 2
    }
847
848
    /**
849
     * @return boolean
850
     */
851 1
    public function isSupergroupChatCreated()
852
    {
853 1
        return $this->supergroupChatCreated;
854
    }
855
856
    /**
857
     * @param boolean $channelChatCreated
858
     */
859 2
    public function setChannelChatCreated($channelChatCreated)
860
    {
861 2
        $this->channelChatCreated = $channelChatCreated;
862 2
    }
863
864
    /**
865
     * @return boolean
866
     */
867 1
    public function isChannelChatCreated()
868
    {
869 1
        return $this->channelChatCreated;
870
    }
871
872
    /**
873
     * @param int $migrateToChatId
874
     */
875 2
    public function setMigrateToChatId($migrateToChatId)
876
    {
877 2
        $this->migrateToChatId = $migrateToChatId;
878 2
    }
879
880
    /**
881
     * @return int
882
     */
883 1
    public function getMigrateToChatId()
884
    {
885 1
        return $this->migrateToChatId;
886
    }
887
888
    /**
889
     * @param int $migrateFromChatId
890
     */
891 4
    public function setMigrateFromChatId($migrateFromChatId)
892
    {
893 4
        $this->migrateFromChatId = $migrateFromChatId;
894 4
    }
895
896
    /**
897
     * @return int
898
     */
899 1
    public function getMigrateFromChatId()
900
    {
901 1
        return $this->migrateFromChatId;
902
    }
903
904
    /**
905
     * @return Message
906
     */
907
    public function getPinnedMessage()
908
    {
909
        return $this->pinnedMessage;
910
    }
911
912
    /**
913
     * @param Message $pinnedMessage
914
     */
915
    public function setPinnedMessage($pinnedMessage)
916
    {
917
        $this->pinnedMessage = $pinnedMessage;
918
    }
919
920
    /**
921
     * @author MY
922
     * @return Invoice
923
     */
924
    public function getInvoice()
925
    {
926
        return $this->invoice;
927
    }
928
929
    /**
930
     * @author MY
931
     * @param Invoice $invoice
932
     */
933
    public function setInvoice($invoice)
934
    {
935
        $this->invoice = $invoice;
936
    }
937
938
    /**
939
     * @author MY
940
     * @return SuccessfulPayment
941
     */
942
    public function getSuccessfulPayment()
943
    {
944
        return $this->successfulPayment;
945
    }
946
947
    /**
948
     * @author MY
949
     * @param SuccessfulPayment $successfulPayment
950
     */
951
    public function setSuccessfulPayment($successfulPayment)
952
    {
953
        $this->successfulPayment = $successfulPayment;
954
    }
955
956
    /**
957
     * @return string
958
     */
959
    public function getForwardSignature()
960
    {
961
        return $this->forwardSignature;
962
    }
963
964
    /**
965
     * @param string $forwardSignature
966
     */
967
    public function setForwardSignature($forwardSignature)
968
    {
969
        $this->forwardSignature = $forwardSignature;
970
    }
971
972
    /**
973
     * @return string
974
     */
975
    public function getAuthorSignature()
976
    {
977
        return $this->authorSignature;
978
    }
979
980
    /**
981
     * @param string $authorSignature
982
     */
983
    public function setAuthorSignature($authorSignature)
984
    {
985
        $this->authorSignature = $authorSignature;
986
    }
987
988
    /**
989
     * @return ArrayOfMessageEntity
990
     */
991
    public function getCaptionEntities()
992
    {
993
        return $this->captionEntities;
994
    }
995
996
    /**
997
     * @param ArrayOfMessageEntity $captionEntities
998
     */
999
    public function setCaptionEntities($captionEntities)
1000
    {
1001
        $this->captionEntities = $captionEntities;
1002
    }
1003
1004
    /**
1005
     * @return string
1006
     */
1007
    public function getConnectedWebsite()
1008
    {
1009
        return $this->connectedWebsite;
1010
    }
1011
1012
    /**
1013
     * @param string $connectedWebsite
1014
     */
1015
    public function setConnectedWebsite($connectedWebsite)
1016
    {
1017
        $this->connectedWebsite = $connectedWebsite;
1018
    }
1019
}
1020