CallbackQuery   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
c 0
b 0
f 0
lcom 0
cbo 1
dl 0
loc 13
ccs 0
cts 7
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A subEntities() 0 7 1
1
<?php
2
/**
3
 * This file is part of the TelegramBot package.
4
 *
5
 * (c) Avtandil Kikabidze aka LONGMAN <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
11
namespace Longman\TelegramBot\Entities;
12
13
/**
14
 * Class CallbackQuery.
15
 *
16
 * @link https://core.telegram.org/bots/api#callbackquery
17
 *
18
 * @method string  getId()              Unique identifier for this query
19
 * @method User    getFrom()            Sender
20
 * @method Message getMessage()         Optional. Message with the callback button that originated the query. Note that message content and message date will not be available if the message is too old
21
 * @method string  getInlineMessageId() Optional. Identifier of the message sent via the bot in inline mode, that originated the query
22
 * @method string  getData()            Data associated with the callback button. Be aware that a bad client can send arbitrary data in this field
23
 */
24
class CallbackQuery extends Entity
25
{
26
    /**
27
     * {@inheritdoc}
28
     */
29
    public function subEntities()
30
    {
31
        return [
32
            'from'    => User::class,
33
            'message' => Message::class,
34
        ];
35
    }
36
}
37