Completed
Pull Request — master (#132)
by
unknown
08:35
created

Seat::getRow()   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 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
ccs 0
cts 2
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace AppBundle\Entity;
4
5
use Doctrine\Common\Collections\ArrayCollection;
6
use Doctrine\ORM\Mapping as ORM;
7
use Gedmo\Mapping\Annotation as Gedmo;
8
use Gedmo\Translatable\Document\Translation;
9
use JMS\Serializer\Annotation\ExclusionPolicy;
10
use JMS\Serializer\Annotation\Expose;
11
use JMS\Serializer\Annotation\Type;
12
use Symfony\Component\Validator\Constraints as Assert;
13
14
/**
15
 * @ORM\Table(name="seat")
16
 * @ORM\Entity(repositoryClass="AppBundle\Repository\SeatRepository")
17
 * @ExclusionPolicy("all")
18
 */
19
class Seat
20
{
21
    /**
22
     * @var integer
23
     *
24
     * @ORM\Column(name="id", type="integer")
25
     * @ORM\Id
26
     * @ORM\GeneratedValue(strategy="AUTO")
27
     */
28
    protected $id;
29
30
    /**
31
     * @var string
32
     * @Assert\NotBlank()
33
     * @ORM\Column(type="string", length=255)
34
     * @Type("string")
35
     * @Expose()
36
     */
37
    protected $uuid;
38
39
    /**
40
     * @var integer
41
     * @Assert\NotBlank()
42
     *
43
     * @ORM\Column(name="row", type="integer")
44
     * @Type("integer")
45
     * @Expose()
46
     */
47
    protected $row;
48
49
    /**
50
     * @var integer
51
     * @Assert\NotBlank()
52
     *
53
     * @ORM\Column(name="place", type="integer")
54
     * @Type("integer")
55
     * @Expose()
56
     */
57
    protected $place;
58
59
    /**
60
     * @var VenueSector
61
     *
62
     * @ORM\ManyToOne(targetEntity="AppBundle\Entity\VenueSector", inversedBy="seats")
63
     * @Type("AppBundle\Entity\Venue")
64
     * @Expose()
65
     */
66
    protected $venueSector;
67
68
    /**
69
     * @var PriceCategory
70
     *
71
     * @ORM\ManyToOne(targetEntity="AppBundle\Entity\PriceCategory", inversedBy="seats")
72
     * @Type("AppBundle\Entity\Venue")
73
     * @Expose()
74
     */
75
    protected $priceCategory;
76
77
    /**
78
     * @return integer
79
     */
80
    public function getId()
81
    {
82
        return $this->id;
83
    }
84
85
    /**
86
     * @return Seat
87
     */
88
    public function unsetTranslations()
89
    {
90
        $this->translations = null;
0 ignored issues
show
Bug introduced by
The property translations does not exist. Did you maybe forget to declare it?

In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:

class MyClass { }

$x = new MyClass();
$x->foo = true;

Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion:

class MyClass {
    public $foo;
}

$x = new MyClass();
$x->foo = true;
Loading history...
91
92
        return $this;
93
    }
94
95
    /**
96
     * @return int
97
     */
98
    public function getRow(): int
99
    {
100
        return $this->row;
101
    }
102
103
    /**
104
     * @param int $row
105
     */
106
    public function setRow(int $row)
107
    {
108
        $this->row = $row;
109
    }
110
111
    /**
112
     * @return int
113
     */
114
    public function getPlace(): int
115
    {
116
        return $this->place;
117
    }
118
119
    /**
120
     * @param int $place
121
     */
122
    public function setPlace(int $place)
123
    {
124
        $this->place = $place;
125
    }
126
127
    /**
128
     * @return VenueSector
129
     */
130
    public function getVenueSector(): VenueSector
131
    {
132
        return $this->venueSector;
133
    }
134
135
    /**
136
     * @return PriceCategory
137
     */
138
    public function getPriceCategory(): PriceCategory
139
    {
140
        return $this->priceCategory;
141
    }
142
}
143