Passed
Pull Request — develop (#1077)
by Marco
02:09
created

Venue   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 9
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0
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 PhpTelegramBot\Core\Entities;
13
14
/**
15
 * Class Venue
16
 *
17
 * @link https://core.telegram.org/bots/api#venue
18
 *
19
 * @method Location getLocation()       Venue location
20
 * @method string   getTitle()          Name of the venue
21
 * @method string   getAddress()        Address of the venue
22
 * @method string   getFoursquareId()   Optional. Foursquare identifier of the venue
23
 * @method string   getFoursquareType() Optional. Foursquare type of the venue. (For example, “arts_entertainment/default”, “arts_entertainment/aquarium” or “food/icecream”.)
24
 */
25
class Venue extends Entity
26
{
27
    /**
28
     * {@inheritdoc}
29
     */
30
    protected function subEntities()
31
    {
32
        return [
33
            'location' => Location::class,
34
        ];
35
    }
36
}
37