InlineQuery   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 13
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A relations() 0 7 1
1
<?php
2
3
namespace Telegram\Bot\Objects;
4
5
/**
6
 * Class InlineQuery.
7
 *
8
 *
9
 * @method int          getId()         Unique identifier for this query.
10
 * @method User         getFrom()       Sender.
11
 * @method Location     getLocation()   (Optional). Sender location, only for bots that request user location.
12
 * @method string       getQuery()      Text of the query.
13
 * @method string       getOffset()     Offset of the results to be returned.
14
 * @link https://core.telegram.org/bots/api#inlinequery
15
 */
16
class InlineQuery 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