Venue   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A subEntities() 0 4 1
1
<?php
2
3
4
namespace TelegramBot\Entities;
5
6
use TelegramBot\Entity;
7
8
/**
9
 * Class Venue
10
 *
11
 * @link https://core.telegram.org/bots/api#venue
12
 *
13
 * @method Location getLocation()           Venue location
14
 * @method string   getTitle()              Name of the venue
15
 * @method string   getAddress()            Address of the venue
16
 * @method string   getFoursquareId()       Optional. Foursquare identifier of the venue
17
 * @method string   getFoursquareType()     Optional. Foursquare type of the venue. (For example, “arts_entertainment/default”, “arts_entertainment/aquarium” or “food/icecream”.)
18
 * @method string   getGooglePlaceId()      Optional. Google Places identifier of the venue
19
 * @method string   getGooglePlaceType()    Optional. Google Places type of the venue
20
 */
21
class Venue extends Entity
22
{
23
24
    /**
25
     * {@inheritdoc}
26
     */
27
    protected function subEntities(): array
28
    {
29
        return [
30
            'location' => Location::class,
31
        ];
32
    }
33
34
}
35