GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — user-entity ( 05fe6b...006501 )
by Luis Ramón
03:27
created

Expense::getId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
/*
3
  ÁTICA - Aplicación web para la gestión documental de centros educativos
4
5
  Copyright (C) 2015-2016: Luis Ramón López López
6
7
  This program is free software: you can redistribute it and/or modify
8
  it under the terms of the GNU Affero General Public License as published by
9
  the Free Software Foundation, either version 3 of the License, or
10
  (at your option) any later version.
11
12
  This program is distributed in the hope that it will be useful,
13
  but WITHOUT ANY WARRANTY; without even the implied warranty of
14
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
  GNU Affero General Public License for more details.
16
17
  You should have received a copy of the GNU Affero General Public License
18
  along with this program.  If not, see [http://www.gnu.org/licenses/].
19
*/
20
21
namespace AppBundle\Entity;
22
23
use Doctrine\ORM\Mapping as ORM;
24
25
/**
26
 * @ORM\Entity
27
 */
28
class Expense
29
{
30
    /**
31
     * @ORM\Id
32
     * @ORM\Column(type="integer")
33
     * @ORM\GeneratedValue
34
     * @var int
35
     */
36
    protected $id;
37
38
    /**
39
     * @ORM\Column(type="date")
40
     * @var \DateTime
41
     */
42
    protected $date;
43
44
    /**
45
     * @ORM\ManyToOne(targetEntity="User", inversedBy="expenses")
46
     * @ORM\JoinColumn(nullable=false)
47
     * @var Agreement
48
     */
49
    protected $teacher;
50
51
    /**
52
     * @ORM\Column(type="string", nullable=true)
53
     * @var string
54
     */
55
    protected $route;
56
57
    /**
58
     * @ORM\Column(type="float", nullable=true)
59
     * @var float
60
     */
61
    protected $distance;
62
63
    /**
64
     * @ORM\Column(type="boolean", nullable=true)
65
     * @var bool
66
     */
67
    protected $reviewed;
68
69
    /**
70
     * @ORM\Column(type="boolean", nullable=true)
71
     * @var bool
72
     */
73
    protected $paid;
74
    
75
    /**
76
     * @ORM\Column(type="text", nullable=true)
77
     * @var string
78
     */
79
    protected $notes;
80
81
82
    /**
83
     * Get id
84
     *
85
     * @return integer
86
     */
87
    public function getId()
88
    {
89
        return $this->id;
90
    }
91
92
    /**
93
     * Set date
94
     *
95
     * @param \DateTime $date
96
     *
97
     * @return Expense
98
     */
99
    public function setDate($date)
100
    {
101
        $this->date = $date;
102
103
        return $this;
104
    }
105
106
    /**
107
     * Get date
108
     *
109
     * @return \DateTime
110
     */
111
    public function getDate()
112
    {
113
        return $this->date;
114
    }
115
116
    /**
117
     * Set route
118
     *
119
     * @param string $route
120
     *
121
     * @return Expense
122
     */
123
    public function setRoute($route)
124
    {
125
        $this->route = $route;
126
127
        return $this;
128
    }
129
130
    /**
131
     * Get route
132
     *
133
     * @return string
134
     */
135
    public function getRoute()
136
    {
137
        return $this->route;
138
    }
139
140
    /**
141
     * Set distance
142
     *
143
     * @param float $distance
144
     *
145
     * @return Expense
146
     */
147
    public function setDistance($distance)
148
    {
149
        $this->distance = $distance;
150
151
        return $this;
152
    }
153
154
    /**
155
     * Get distance
156
     *
157
     * @return float
158
     */
159
    public function getDistance()
160
    {
161
        return $this->distance;
162
    }
163
164
    /**
165
     * Set reviewed
166
     *
167
     * @param boolean $reviewed
168
     *
169
     * @return Expense
170
     */
171
    public function setReviewed($reviewed)
172
    {
173
        $this->reviewed = $reviewed;
174
175
        return $this;
176
    }
177
178
    /**
179
     * Get reviewed
180
     *
181
     * @return boolean
182
     */
183
    public function getReviewed()
184
    {
185
        return $this->reviewed;
186
    }
187
188
    /**
189
     * Set paid
190
     *
191
     * @param boolean $paid
192
     *
193
     * @return Expense
194
     */
195
    public function setPaid($paid)
196
    {
197
        $this->paid = $paid;
198
199
        return $this;
200
    }
201
202
    /**
203
     * Get paid
204
     *
205
     * @return boolean
206
     */
207
    public function getPaid()
208
    {
209
        return $this->paid;
210
    }
211
212
    /**
213
     * Set notes
214
     *
215
     * @param string $notes
216
     *
217
     * @return Expense
218
     */
219
    public function setNotes($notes)
220
    {
221
        $this->notes = $notes;
222
223
        return $this;
224
    }
225
226
    /**
227
     * Get notes
228
     *
229
     * @return string
230
     */
231
    public function getNotes()
232
    {
233
        return $this->notes;
234
    }
235
236
    /**
237
     * Set teacher
238
     *
239
     * @param User $teacher
240
     *
241
     * @return Expense
242
     */
243
    public function setTeacher(User $teacher)
244
    {
245
        $this->teacher = $teacher;
0 ignored issues
show
Documentation Bug introduced by
It seems like $teacher of type object<AppBundle\Entity\User> is incompatible with the declared type object<AppBundle\Entity\Agreement> of property $teacher.

Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.

Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..

Loading history...
246
247
        return $this;
248
    }
249
250
    /**
251
     * Get teacher
252
     *
253
     * @return User
254
     */
255
    public function getTeacher()
256
    {
257
        return $this->teacher;
258
    }
259
}
260