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

GiveawayCompleted   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 6
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A subEntities() 0 4 1
1
<?php
2
3
namespace Longman\TelegramBot\Entities\Giveaway;
4
5
use Longman\TelegramBot\Entities\Entity;
6
use Longman\TelegramBot\Entities\Message;
7
8
/**
9
 * This object represents a service message about the completion of a giveaway without public winners.
10
 *
11
 * @link https://core.telegram.org/bots/api#giveawaycompleted
12
 *
13
 * @method int     getWinnerCount()         Number of winners in the giveaway
14
 * @method int     getUnclaimedPrizeCount() Optional. Number of undistributed prizes
15
 * @method Message getGiveawayMessage()     Optional. Message with the giveaway that was completed, if it wasn't deleted
16
 */
17
class GiveawayCompleted extends Entity
18
{
19
    protected function subEntities(): array
20
    {
21
        return [
22
            'giveaway_message' => Message::class,
23
        ];
24
    }
25
}
26