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

GiveawayCompleted::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\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