Passed
Push — master ( 4c2b59...061776 )
by Shahrad
02:09
created

ChatLocation::subEntities()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 4
rs 10
1
<?php
2
3
namespace TelegramBot\Entities;
4
5
use TelegramBot\Entity;
6
7
/**
8
 * Class ChatLocation
9
 *
10
 * Represents a location to which a chat is connected.
11
 *
12
 * @link https://core.telegram.org/bots/api#chatlocation
13
 *
14
 * @method Location getLocation()    The location to which the supergroup is connected. Can't be a live location.
15
 * @method string   getAddress()    Location address, 1-64 characters, as defined by the chat owner
16
 */
17
class ChatLocation extends Entity
18
{
19
20
    /**
21
     * {@inheritdoc}
22
     */
23
    protected function subEntities(): array
24
    {
25
        return [
26
            'location' => Location::class,
27
        ];
28
    }
29
30
}
31