ChatLocation   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 3
c 1
b 0
f 0
dl 0
loc 10
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A subEntities() 0 4 1
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