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

ChatBoostRemoved   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A subEntities() 0 5 1
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 represents a boost removed from a chat.
18
 *
19
 * @link https://core.telegram.org/bots/api#chatboostremoved
20
 *
21
 * @method Chat            getChat()       Chat which was boosted
22
 * @method string          getBoostId()    Unique identifier of the boost
23
 * @method int             getRemoveDate() Point in time (Unix timestamp) when the boost was removed
24
 * @method ChatBoostSource getSource()     Source of the removed boost
25
 */
26
class ChatBoostRemoved extends Entity
27
{
28
    /**
29
     * {@inheritdoc}
30
     */
31
    protected function subEntities(): array
32
    {
33
        return [
34
            'chat'   => Chat::class,
35
            'source' => ChatBoostSourceFactory::class,
36
        ];
37
    }
38
}
39