ChosenInlineResult   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A subEntities() 0 5 1
1
<?php
2
3
namespace TelegramBot\Entities;
4
5
use TelegramBot\Entity;
6
7
/**
8
 * Class ChosenInlineResult
9
 *
10
 * @link https://core.telegram.org/bots/api#choseninlineresult
11
 *
12
 * @method string   getResultId()           The unique identifier for the result that was chosen
13
 * @method User     getFrom()               The user that chose the result
14
 * @method Location getLocation()           Optional. Sender location, only for bots that require user location
15
 * @method string   getInlineMessageId()    Optional. Identifier of the sent inline message. Available only if there is an inline keyboard attached to the message. Will be also received in callback queries and can be used to edit the message.
16
 * @method string   getQuery()              The query that was used to obtain the result
17
 */
18
class ChosenInlineResult extends Entity
19
{
20
21
    /**
22
     * {@inheritdoc}
23
     */
24
    protected function subEntities(): array
25
    {
26
        return [
27
            'from' => User::class,
28
            'location' => Location::class,
29
        ];
30
    }
31
32
}
33