Passed
Push — develop ( 57a649...a01996 )
by Armando
33:04 queued 27:25
created

ExternalReplyInfo   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 23
c 1
b 0
f 0
dl 0
loc 29
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A subEntities() 0 24 1
1
<?php
2
3
/**
4
 * This file is part of the TelegramBot package.
5
 *
6
 * (c) Avtandil Kikabidze aka LONGMAN <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Longman\TelegramBot\Entities;
13
14
/**
15
 * This object contains information about a message that is being replied to, which may come from another chat or forum topic.
16
 *
17
 * @link https://core.telegram.org/bots/api#externalreplyinfo
18
 *
19
 * @method MessageOrigin      getOrigin()             Origin of the message replied to by the given message
20
 * @method Chat               getChat()               Optional. Chat the original message belongs to. Available only if the chat is a supergroup or a channel.
21
 * @method int                getMessageId()          Optional. Unique message identifier inside the original chat. Available only if the original chat is a supergroup or a channel.
22
 * @method LinkPreviewOptions getLinkPreviewOptions() Optional. Options used for link preview generation for the original message, if it is a text message
23
 * @method Animation          getAnimation()          Optional. Message is an animation, information about the animation
24
 * @method Audio              getAudio()              Optional. Message is an audio file, information about the file
25
 * @method Document           getDocument()           Optional. Message is a general file, information about the file
26
 * @method PhotoSize[]        getPhoto()              Optional. Message is a photo, available sizes of the photo
27
 * @method Sticker            getSticker()            Optional. Message is a sticker, information about the sticker
28
 * @method Story              getStory()              Optional. Message is a forwarded story
29
 * @method Video              getVideo()              Optional. Message is a video, information about the video
30
 * @method VideoNote          getVideoNote()          Optional. Message is a video note, information about the video message
31
 * @method Voice              getVoice()              Optional. Message is a voice message, information about the file
32
 * @method bool               getHasMediaSpoiler()    Optional. True, if the message media is covered by a spoiler animation
33
 * @method Contact            getContact()            Optional. Message is a shared contact, information about the contact
34
 * @method Dice               getDice()               Optional. Message is a dice with random value
35
 * @method Game               getGame()               Optional. Message is a game, information about the game. More about games »
36
 * @method Giveaway           getGiveaway()           Optional. Message is a scheduled giveaway, information about the giveaway
37
 * @method GiveawayWinners    getGiveawayWinners()    Optional. A giveaway with public winners was completed
38
 * @method Invoice            getInvoice()            Optional. Message is an invoice for a payment, information about the invoice. More about payments »
39
 * @method Location           getLocation()           Optional. Message is a shared location, information about the location
40
 * @method Poll               getPoll()               Optional. Message is a native poll, information about the poll
41
 * @method Venue              getVenue()              Optional. Message is a venue, information about the venue
42
 */
43
class ExternalReplyInfo extends Entity
44
{
45
    /**
46
     * {@inheritdoc}
47
     */
48
    protected function subEntities(): array
49
    {
50
        return [
51
            'origin'               => MessageOrigin::class,
52
            'chat'                 => Chat::class,
53
            'link_preview_options' => LinkPreviewOptions::class,
54
            'animation'            => Animation::class,
55
            'audio'                => Audio::class,
56
            'document'             => Document::class,
57
            'photo'                => [PhotoSize::class],
58
            'sticker'              => Sticker::class,
59
            'story'                => Story::class,
60
            'video'                => Video::class,
61
            'video_note'           => VideoNote::class,
62
            'voice'                => Voice::class,
63
            'contact'              => Contact::class,
64
            'dice'                 => Dice::class,
65
            'game'                 => Game::class,
66
            'giveaway'             => Giveaway::class,
67
            'giveaway_winners'     => GiveawayWinners::class,
0 ignored issues
show
Bug introduced by
The type Longman\TelegramBot\Entities\GiveawayWinners was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
68
            'invoice'              => Invoice::class,
0 ignored issues
show
Bug introduced by
The type Longman\TelegramBot\Entities\Invoice was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
69
            'location'             => Location::class,
70
            'poll'                 => Poll::class,
71
            'venue'                => Venue::class,
72
        ];
73
    }
74
}
75