Passed
Push — develop ( 57a649...a01996 )
by Armando
33:04 queued 27:25
created

UserChatBoosts::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
/**
4
 * This file is part of the TelegramBot package.
5
 *
6
 * (c) Avtandil Kikabidze aka LONGMAN <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Longman\TelegramBot\Entities;
13
14
/**
15
 * This object represents a list of boosts added to a chat by a user.
16
 *
17
 * @link https://core.telegram.org/bots/api#userchatboosts
18
 *
19
 * @method ChatBoost[] getBoosts() The list of boosts added to the chat by the user
20
 */
21
class UserChatBoosts extends Entity
22
{
23
    /**
24
     * {@inheritdoc}
25
     */
26
    protected function subEntities(): array
27
    {
28
        return [
29
            'boosts' => [ChatBoost::class],
30
        ];
31
    }
32
}
33