Passed
Pull Request — develop (#1459)
by Armando
28:33 queued 18:33
created

ChatBoostUpdated   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
/**
15
 * This object represents a boost added to a chat or changed.
16
 *
17
 * @link https://core.telegram.org/bots/api#chatboostupdated
18
 *
19
 * @method Chat      getChat()  Chat which was boosted
20
 * @method ChatBoost getBoost() Information about the chat boost
21
 */
22
class ChatBoostUpdated extends Entity
23
{
24
    /**
25
     * {@inheritdoc}
26
     */
27
    protected function subEntities(): array
28
    {
29
        return [
30
            'chat'       => Chat::class,
31
            'chat_boost' => ChatBoost::class,
32
        ];
33
    }
34
}
35