Completed
Push — master ( c1766c...380288 )
by Gusev
14:27 queued 12:09
created

Message::getPoll()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

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