Completed
Push — master ( 175f05...5ac193 )
by Bukashk0zzz
04:34
created

OfferEventTicket::setPlace()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
3
/*
4
 * This file is part of the Bukashk0zzzYmlGenerator
5
 *
6
 * (c) Denis Golubovskiy <[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 Bukashk0zzz\YmlGenerator\Model\Offer;
13
14
/**
15
 * Class OfferEventTicket
16
 *
17
 * @author Denis Golubovskiy <[email protected]>
18
 */
19
class OfferEventTicket extends AbstractOffer
20
{
21
    /**
22
     * @var string
23
     */
24
    private $name;
25
26
    /**
27
     * @var string
28
     */
29
    private $place;
30
31
    /**
32
     * @var string
33
     */
34
    private $date;
35
36
    /**
37
     * @var int
38
     */
39
    private $premiere;
40
41
    /**
42
     * @var int
43
     */
44
    private $kids;
45
46
    /**
47
     * @return string
48
     */
49
    public function getType()
50
    {
51
        return 'event-ticket';
52
    }
53
54
    /**
55
     * @return string
56
     */
57
    public function getName()
58
    {
59
        return $this->name;
60
    }
61
62
    /**
63
     * @param string $name
64
     * @return $this
65
     */
66
    public function setName($name)
67
    {
68
        $this->name = $name;
69
70
        return $this;
71
    }
72
73
    /**
74
     * @return string
75
     */
76
    public function getPlace()
77
    {
78
        return $this->place;
79
    }
80
81
    /**
82
     * @param string $place
83
     * @return $this
84
     */
85
    public function setPlace($place)
86
    {
87
        $this->place = $place;
88
89
        return $this;
90
    }
91
92
    /**
93
     * @return string
94
     */
95
    public function getDate()
96
    {
97
        return $this->date;
98
    }
99
100
    /**
101
     * @param string $date
102
     * @return $this
103
     */
104
    public function setDate($date)
105
    {
106
        $this->date = $date;
107
108
        return $this;
109
    }
110
111
    /**
112
     * @return int
113
     */
114
    public function getPremiere()
115
    {
116
        return $this->premiere;
117
    }
118
119
    /**
120
     * @param int $premiere
121
     * @return $this
122
     */
123
    public function setPremiere($premiere)
124
    {
125
        $this->premiere = $premiere;
126
127
        return $this;
128
    }
129
130
    /**
131
     * @return int
132
     */
133
    public function getKids()
134
    {
135
        return $this->kids;
136
    }
137
138
    /**
139
     * @param int $kids
140
     * @return $this
141
     */
142
    public function setKids($kids)
143
    {
144
        $this->kids = $kids;
145
146
        return $this;
147
    }
148
149
    /**
150
     * @return array
151
     */
152
    protected function getOptions()
153
    {
154
        return [
155
            'name' => $this->getName(),
156
            'place' => $this->getPlace(),
157
            'date' => $this->getDate(),
158
            'is_premiere' => $this->getPremiere(),
159
            'is_kids' => $this->getKids(),
160
        ];
161
    }
162
}
163