Completed
Pull Request — develop (#291)
by Armando
03:51
created

Venue::subEntities()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 6
rs 9.4285
ccs 0
cts 6
cp 0
cc 1
eloc 3
nc 1
nop 0
crap 2
1
<?php
2
/**
3
 * This file is part of the TelegramBot package.
4
 *
5
 * (c) Avtandil Kikabidze aka LONGMAN <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
11
namespace Longman\TelegramBot\Entities;
12
13
/**
14
 * Class Venue
15
 *
16
 * @link https://core.telegram.org/bots/api#venue
17
 *
18
 * @method Location getLocation()     Venue location
19
 * @method string   getTitle()        Name of the venue
20
 * @method string   getAddress()      Address of the venue
21
 * @method string   getFoursquareId() Optional. Foursquare identifier of the venue
22
 */
23
class Venue extends Entity
24
{
25
    /**
26
     * {@inheritdoc}
27
     */
28
    protected function subEntities()
29
    {
30
        return [
31
            'location' => Location::class,
32
        ];
33
    }
34
}
35