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 — master ( 946e53...2c9141 )
by Luis Ramón
16:58
created

Expense::getRoute()   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(repositoryClass="ExpenseRepository")
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 User
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 isReviewed()
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
        // si se ha pagado, ha sido revisado
200
        if ($paid) {
201
            $this->setReviewed(true);
202
        }
203
204
        return $this;
205
    }
206
207
    /**
208
     * Get paid
209
     *
210
     * @return boolean
211
     */
212
    public function isPaid()
213
    {
214
        return $this->paid;
215
    }
216
217
    /**
218
     * Set notes
219
     *
220
     * @param string $notes
221
     *
222
     * @return Expense
223
     */
224
    public function setNotes($notes)
225
    {
226
        $this->notes = $notes;
227
228
        return $this;
229
    }
230
231
    /**
232
     * Get notes
233
     *
234
     * @return string
235
     */
236
    public function getNotes()
237
    {
238
        return $this->notes;
239
    }
240
241
    /**
242
     * Set teacher
243
     *
244
     * @param User $teacher
245
     *
246
     * @return Expense
247
     */
248
    public function setTeacher(User $teacher)
249
    {
250
        $this->teacher = $teacher;
251
252
        return $this;
253
    }
254
255
    /**
256
     * Get teacher
257
     *
258
     * @return User
259
     */
260
    public function getTeacher()
261
    {
262
        return $this->teacher;
263
    }
264
}
265