Completed
Push — master ( caadb4...f259ee )
by Irfaq
15:43 queued 13:25
created

ChosenInlineResult::relations()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 6
ccs 0
cts 3
cp 0
rs 9.4285
cc 1
eloc 3
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 string       getQuery()          The query that was used to obtain the result.
12
 * @link https://core.telegram.org/bots/api#choseninlineresult
13
 */
14
class ChosenInlineResult extends BaseObject
15
{
16
    /**
17
     * {@inheritdoc}
18
     */
19
    public function relations()
20
    {
21
        return [
22
            'from' => User::class,
23
        ];
24
    }
25
}
26