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

ChatBoostSourceGiftCode::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\ChatBoostSource;
4
5
use Longman\TelegramBot\Entities\Entity;
6
use Longman\TelegramBot\Entities\User;
7
8
/**
9
 * The boost was obtained by the creation of Telegram Premium gift codes to boost a chat.
10
 *
11
 * @link https://core.telegram.org/bots/api#chatboostsourcegiftcode
12
 *
13
 * @method string getSource() Source of the boost, always “gift_code”
14
 * @method User   getUser()   User for which the gift code was created
15
 */
16
class ChatBoostSourceGiftCode extends Entity implements ChatBoostSource
17
{
18
    /**
19
     * {@inheritdoc}
20
     */
21
    protected function subEntities(): array
22
    {
23
        return [
24
            'user' => User::class,
25
        ];
26
    }
27
}
28