OfferEventTicket::setPremiere()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 5
rs 10
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
class OfferEventTicket extends AbstractOffer
18
{
19
    /**
20
     * @var string
21
     */
22
    private $name;
23
24
    /**
25
     * @var string
26
     */
27
    private $place;
28
29
    /**
30
     * @var string
31
     */
32
    private $date;
33
34
    /**
35
     * @var int
36
     */
37
    private $premiere;
38
39
    /**
40
     * @var int
41
     */
42
    private $kids;
43
44
    /**
45
     * @return string
46
     */
47
    public function getType()
48
    {
49
        return 'event-ticket';
50
    }
51
52
    /**
53
     * @return string
54
     */
55
    public function getName()
56
    {
57
        return $this->name;
58
    }
59
60
    /**
61
     * @param string $name
62
     *
63
     * @return $this
64
     */
65
    public function setName($name)
66
    {
67
        $this->name = $name;
68
69
        return $this;
70
    }
71
72
    /**
73
     * @return string
74
     */
75
    public function getPlace()
76
    {
77
        return $this->place;
78
    }
79
80
    /**
81
     * @param string $place
82
     *
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
     *
103
     * @return $this
104
     */
105
    public function setDate($date)
106
    {
107
        $this->date = $date;
108
109
        return $this;
110
    }
111
112
    /**
113
     * @return int
114
     */
115
    public function getPremiere()
116
    {
117
        return $this->premiere;
118
    }
119
120
    /**
121
     * @param int $premiere
122
     *
123
     * @return $this
124
     */
125
    public function setPremiere($premiere)
126
    {
127
        $this->premiere = $premiere;
128
129
        return $this;
130
    }
131
132
    /**
133
     * @return int
134
     */
135
    public function getKids()
136
    {
137
        return $this->kids;
138
    }
139
140
    /**
141
     * @param int $kids
142
     *
143
     * @return $this
144
     */
145
    public function setKids($kids)
146
    {
147
        $this->kids = $kids;
148
149
        return $this;
150
    }
151
152
    /**
153
     * @return array
154
     */
155
    protected function getOptions()
156
    {
157
        return [
158
            'name' => $this->getName(),
159
            'place' => $this->getPlace(),
160
            'date' => $this->getDate(),
161
            'is_premiere' => $this->getPremiere(),
162
            'is_kids' => $this->getKids(),
163
        ];
164
    }
165
}
166