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

MessageReactionCountUpdated::subEntities()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 3
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 5
rs 10
1
<?php
2
3
namespace Longman\TelegramBot\Entities;
4
5
/**
6
 * This object represents reaction changes on a message with anonymous reactions.
7
 *
8
 * @link https://core.telegram.org/bots/api#messagereactioncountupdated
9
 *
10
 * @method Chat            getChat()      The chat containing the message
11
 * @method int             getMessageId() Unique message identifier inside the chat
12
 * @method int             getDate()      Date of the change in Unix time
13
 * @method ReactionCount[] getReactions() List of reactions that are present on the message
14
 */
15
class MessageReactionCountUpdated extends Entity
16
{
17
    protected function subEntities(): array
18
    {
19
        return [
20
            'chat'      => Chat::class,
21
            'reactions' => [ReactionCount::class],
22
        ];
23
    }
24
}
25