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

MessageReactionCountUpdated   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A subEntities() 0 5 1
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