Passed
Push — master ( 26433b...596cc9 )
by Armando
16:00 queued 05:59
created

ReactionCount::subEntities()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 4
rs 10
1
<?php
2
3
namespace Longman\TelegramBot\Entities;
4
5
use Longman\TelegramBot\Entities\ReactionType\Factory as ReactionTypeFactory;
6
use Longman\TelegramBot\Entities\ReactionType\ReactionType;
7
8
/**
9
 * Represents a reaction added to a message along with the number of times it was added.
10
 *
11
 * @link https://core.telegram.org/bots/api#reactioncount
12
 *
13
 * @method ReactionType getType()       Type of the reaction
14
 * @method int          getTotalCount() Number of times the reaction was added
15
 */
16
class ReactionCount extends Entity
17
{
18
    protected function subEntities(): array
19
    {
20
        return [
21
            'type' => ReactionTypeFactory::class,
22
        ];
23
    }
24
}
25