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

ChatBoost::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
use Longman\TelegramBot\Entities\ChatBoostSource\Factory as ChatBoostSourceFactory;
15
16
/**
17
 * This object contains information about a chat boost.
18
 *
19
 * @link https://core.telegram.org/bots/api#chatboost
20
 *
21
 * @method string          getBoostId()        Unique identifier of the boost
22
 * @method int             getAddDate()        Point in time (Unix timestamp) when the chat was boosted
23
 * @method int             getExpirationDate() Point in time (Unix timestamp) when the boost will automatically expire, unless the booster's Telegram Premium subscription is prolonged
24
 * @method ChatBoostSource getSource()         Source of the added boost
25
 */
26
class ChatBoost extends Entity
27
{
28
    /**
29
     * {@inheritdoc}
30
     */
31
    protected function subEntities(): array
32
    {
33
        return [
34
            'source' => ChatBoostSourceFactory::class,
35
        ];
36
    }
37
}
38