ChosenInlineResult::relations()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 7
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
1
<?php
2
3
namespace Telegram\Bot\Objects;
4
5
/**
6
 * Class ChosenInlineResult.
7
 *
8
 *
9
 * @method string       getResultId()           The unique identifier for the result that was chosen.
10
 * @method User         getFrom()               The user that chose the result.
11
 * @method Location     getLocation()           (Optional). Sender location, only for bots that require user location.
12
 * @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.
13
 * @method string       getQuery()              The query that was used to obtain the result.
14
 * @link https://core.telegram.org/bots/api#choseninlineresult
15
 */
16
class ChosenInlineResult extends BaseObject
17
{
18
    /**
19
     * {@inheritdoc}
20
     */
21
    public function relations()
22
    {
23
        return [
24
            'from'     => User::class,
25
            'location' => Location::class,
26
        ];
27
    }
28
}
29