ChosenInlineResult   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 10
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0
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
 * Class ChosenInlineResult
16
 *
17
 * @link https://core.telegram.org/bots/api#choseninlineresult
18
 *
19
 * @method string   getResultId()        The unique identifier for the result that was chosen
20
 * @method User     getFrom()            The user that chose the result
21
 * @method Location getLocation()        Optional. Sender location, only for bots that require user location
22
 * @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.
23
 * @method string   getQuery()           The query that was used to obtain the result
24
 */
25
class ChosenInlineResult extends Entity
26
{
27
    /**
28
     * {@inheritdoc}
29
     */
30
    protected function subEntities(): array
31
    {
32
        return [
33
            'from'     => User::class,
34
            'location' => Location::class,
35
        ];
36
    }
37
}
38