Passed
Pull Request — develop (#1459)
by Armando
28:33 queued 18:33
created

ReactionCount   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 6
Duplicated Lines 0 %

Importance

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

1 Method

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