Completed
Push — master ( 5e7ab0...d22029 )
by Irfaq
08:56
created

InlineQuery::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.4286
cc 1
eloc 3
nc 1
nop 0
crap 2
1
<?php
2
3
namespace Telegram\Bot\Objects;
4
5
/**
6
 * Class InlineQuery.
7
 *
8
 *
9
 * @method int              getMessageId()              Unique message identifier.
10
 * @method User             getFrom()                   (Optional). Sender, can be empty for messages sent to channels.
11
 */
12
class InlineQuery extends BaseObject
13
{
14
    /**
15
     * {@inheritdoc}
16
     */
17
    public function relations()
18
    {
19
        return [
20
            'from' => User::class,
21
        ];
22
    }
23
}
24