ProximityAlertTriggered::subEntities()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 5
c 0
b 0
f 0
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
4
namespace TelegramBot\Entities;
5
6
use TelegramBot\Entity;
7
8
/**
9
 * Class ProximityAlertTriggered
10
 *
11
 * Represents the content of a service message, sent whenever a user in the chat triggers a proximity alert set by another user.
12
 *
13
 * @link https://core.telegram.org/bots/api#proximityalerttriggered
14
 *
15
 * @method User getTraveler() User that triggered the alert
16
 * @method User getWatcher()  User that set the alert
17
 * @method int  getDistance() The distance between the users
18
 */
19
class ProximityAlertTriggered extends Entity
20
{
21
22
    /**
23
     * {@inheritdoc}
24
     */
25
    protected function subEntities(): array
26
    {
27
        return [
28
            'traveler' => User::class,
29
            'watcher' => User::class,
30
        ];
31
    }
32
33
}
34