Completed
Push — develop ( bee867...0d3808 )
by Armando
15s queued 12s
created

ChatLocation   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A subEntities() 0 4 1
1
<?php
2
3
/**
4
 * This file is part of the TelegramBot package.
5
 *
6
 * (c) Avtandil Kikabidze aka LONGMAN <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Longman\TelegramBot\Entities;
13
14
/**
15
 * Class ChatLocation
16
 *
17
 * Represents a location to which a chat is connected.
18
 *
19
 * @link https://core.telegram.org/bots/api#chatlocation
20
 *
21
 * @method Location getLocation() The location to which the supergroup is connected. Can't be a live location.
22
 * @method string   getAddress()  Location address; 1-64 characters, as defined by the chat owner
23
 */
24
class ChatLocation extends Entity
25
{
26
    /**
27
     * {@inheritdoc}
28
     */
29
    protected function subEntities(): array
30
    {
31
        return [
32
            'location' => Location::class,
33
        ];
34
    }
35
}
36