Completed
Push — master ( b73efb...175f05 )
by Bukashk0zzz
03:39
created

OfferEventTicket::getKids()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
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 array
48
     */
49
    public function toArray()
50
    {
51
        return array_merge($this->getHeaderOptions(), [
52
            'name' => $this->getName(),
53
            'place' => $this->getPlace(),
54
            'date' => $this->getDate(),
55
            'is_premiere' => $this->getPremiere(),
56
            'is_kids' => $this->getKids(),
57
        ], $this->getFooterOptions());
58
    }
59
60
    /**
61
     * @return string
62
     */
63
    public function getType()
64
    {
65
        return 'event-ticket';
66
    }
67
68
    /**
69
     * @return string
70
     */
71
    public function getName()
72
    {
73
        return $this->name;
74
    }
75
76
    /**
77
     * @param string $name
78
     * @return $this
79
     */
80
    public function setName($name)
81
    {
82
        $this->name = $name;
83
84
        return $this;
85
    }
86
87
    /**
88
     * @return string
89
     */
90
    public function getPlace()
91
    {
92
        return $this->place;
93
    }
94
95
    /**
96
     * @param string $place
97
     * @return $this
98
     */
99
    public function setPlace($place)
100
    {
101
        $this->place = $place;
102
103
        return $this;
104
    }
105
106
    /**
107
     * @return string
108
     */
109
    public function getDate()
110
    {
111
        return $this->date;
112
    }
113
114
    /**
115
     * @param string $date
116
     * @return $this
117
     */
118
    public function setDate($date)
119
    {
120
        $this->date = $date;
121
122
        return $this;
123
    }
124
125
    /**
126
     * @return int
127
     */
128
    public function getPremiere()
129
    {
130
        return $this->premiere;
131
    }
132
133
    /**
134
     * @param int $premiere
135
     * @return $this
136
     */
137
    public function setPremiere($premiere)
138
    {
139
        $this->premiere = $premiere;
140
141
        return $this;
142
    }
143
144
    /**
145
     * @return int
146
     */
147
    public function getKids()
148
    {
149
        return $this->kids;
150
    }
151
152
    /**
153
     * @param int $kids
154
     * @return $this
155
     */
156
    public function setKids($kids)
157
    {
158
        $this->kids = $kids;
159
160
        return $this;
161
    }
162
}
163