Passed
Push — master ( fb55e7...7ecda6 )
by Armando
13:57 queued 04:00
created

ProximityAlertTriggered::subEntities()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 3
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 5
rs 10
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 ProximityAlertTriggered
16
 *
17
 * Represents the content of a service message, sent whenever a user in the chat triggers a proximity alert set by another user.
18
 *
19
 * @link https://core.telegram.org/bots/api#proximityalerttriggered
20
 *
21
 * @method User getTraveler() User that triggered the alert
22
 * @method User getWatcher()  User that set the alert
23
 * @method int  getDistance() The distance between the users
24
 */
25
class ProximityAlertTriggered extends Entity
26
{
27
    /**
28
     * {@inheritdoc}
29
     */
30
    protected function subEntities(): array
31
    {
32
        return [
33
            'traveler' => User::class,
34
            'watcher'  => User::class,
35
        ];
36
    }
37
}
38