ProximityAlertTriggered   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 4
dl 0
loc 11
c 0
b 0
f 0
rs 10

1 Method

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