Passed
Push — api-7.0 ( 7410c3...14c77e )
by Armando
28:03 queued 15:34
created

GiveawayCompleted   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Importance

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

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
20
    protected function subEntities(): array
21
    {
22
        return [
23
            'giveaway_message' => Message::class,
24
        ];
25
    }
26
}
27