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

ChatBoostSourcePremium   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A subEntities() 0 4 1
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 subscribing to Telegram Premium or by gifting a Telegram Premium subscription to another user.
10
 *
11
 * @link https://core.telegram.org/bots/api#chatboostsourcepremium
12
 *
13
 * @method string getSource() Source of the boost, always “premium”
14
 * @method User   getUser()   User that boosted the chat
15
 */
16
class ChatBoostSourcePremium 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