Completed
Push — master ( 6c3ef1...ff2211 )
by Gusev
02:55
created

Venue::getLocation()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 2
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: iGusev
5
 * Date: 13/04/16
6
 * Time: 13:55
7
 */
8
9
namespace TelegramBot\Api\Types;
10
11
use TelegramBot\Api\BaseType;
12
use TelegramBot\Api\TypeInterface;
13
14
class Venue extends BaseType implements TypeInterface
15
{
16
    /**
17
     * {@inheritdoc}
18
     *
19
     * @var array
20
     */
21
    static protected $requiredParams = ['location', 'title', 'address'];
22
23
    /**
24
     * {@inheritdoc}
25
     *
26
     * @var array
27
     */
28
    static protected $map = [
29
        'location' => Location::class,
30
        'title' => true,
31
        'address' => true,
32
        'foursquare_id' => true,
33
    ];
34
35
    /**
36
     * Venue location
37
     *
38
     * @var Location
39
     */
40
    protected $location;
41
42
    /**
43
     * Name of the venue
44
     *
45
     * @var string
46
     */
47
    protected $title;
48
49
    /**
50
     * Address of the venue
51
     *
52
     * @var string
53
     */
54
    protected $address;
55
56
    /**
57
     * Optional. Foursquare identifier of the venue
58
     *
59
     * @var string
60
     */
61
    protected $foursquareId;
62
63
    /**
64
     * @return Location
65
     */
66
    public function getLocation()
67
    {
68
        return $this->location;
69
    }
70
71
    /**
72
     * @param Location $location
73
     */
74
    public function setLocation($location)
75
    {
76
        $this->location = $location;
77
    }
78
79
    /**
80
     * @return string
81
     */
82
    public function getTitle()
83
    {
84
        return $this->title;
85
    }
86
87
    /**
88
     * @param string $title
89
     */
90
    public function setTitle($title)
91
    {
92
        $this->title = $title;
93
    }
94
95
    /**
96
     * @return string
97
     */
98
    public function getAddress()
99
    {
100
        return $this->address;
101
    }
102
103
    /**
104
     * @param string $address
105
     */
106
    public function setAddress($address)
107
    {
108
        $this->address = $address;
109
    }
110
111
    /**
112
     * @return string
113
     */
114
    public function getFoursquareId()
115
    {
116
        return $this->foursquareId;
117
    }
118
119
    /**
120
     * @param string $foursquareId
121
     */
122
    public function setFoursquareId($foursquareId)
123
    {
124
        $this->foursquareId = $foursquareId;
125
    }
126
}
127