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 ( bca039...62b974 )
by Luis Ramón
03:29
created

Workday   A

Complexity

Total Complexity 11

Size/Duplication

Total Lines 170
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 11
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 170
rs 10

11 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 4 1
A setDate() 0 6 1
A getDate() 0 4 1
A setName() 0 6 1
A getName() 0 4 1
A setNotes() 0 6 1
A getNotes() 0 4 1
A setHours() 0 6 1
A getHours() 0 4 1
A setAgreement() 0 6 1
A getAgreement() 0 4 1
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
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
25
26
/**
27
 * @ORM\Entity
28
 * @UniqueEntity(fields={"agreement", "date"})
29
 */
30
class Workday
31
{
32
    /**
33
     * @ORM\Id
34
     * @ORM\GeneratedValue
35
     * @ORM\Column(type="integer")
36
     * @var int
37
     */
38
    protected $id;
39
    
40
    /**
41
     * @ORM\ManyToOne(targetEntity="Agreement", inversedBy="workdays")
42
     * @var Agreement
43
     */
44
    protected $agreement;
45
46
    /**
47
     * @ORM\Column(type="date")
48
     * @var \DateTime
49
     */
50
    protected $date;
51
52
    /**
53
     * @ORM\Column(type="string")
54
     * @var string
55
     */
56
    protected $name;
57
58
    /**
59
     * @ORM\Column(type="text", nullable=true)
60
     * @var string
61
     */
62
    protected $notes;
63
64
    /**
65
     * @ORM\Column(type="integer")
66
     * @var int
67
     */
68
    protected $hours;
69
70
    /**
71
     * Get id
72
     *
73
     * @return integer
74
     */
75
    public function getId()
76
    {
77
        return $this->id;
78
    }
79
80
    /**
81
     * Set date
82
     *
83
     * @param \DateTime $date
84
     *
85
     * @return Workday
86
     */
87
    public function setDate($date)
88
    {
89
        $this->date = $date;
90
91
        return $this;
92
    }
93
94
    /**
95
     * Get date
96
     *
97
     * @return \DateTime
98
     */
99
    public function getDate()
100
    {
101
        return $this->date;
102
    }
103
104
    /**
105
     * Set name
106
     *
107
     * @param string $name
108
     *
109
     * @return Workday
110
     */
111
    public function setName($name)
112
    {
113
        $this->name = $name;
114
115
        return $this;
116
    }
117
118
    /**
119
     * Get name
120
     *
121
     * @return string
122
     */
123
    public function getName()
124
    {
125
        return $this->name;
126
    }
127
128
    /**
129
     * Set notes
130
     *
131
     * @param string $notes
132
     *
133
     * @return Workday
134
     */
135
    public function setNotes($notes)
136
    {
137
        $this->notes = $notes;
138
139
        return $this;
140
    }
141
142
    /**
143
     * Get notes
144
     *
145
     * @return string
146
     */
147
    public function getNotes()
148
    {
149
        return $this->notes;
150
    }
151
152
    /**
153
     * Set hours
154
     *
155
     * @param integer $hours
156
     *
157
     * @return Workday
158
     */
159
    public function setHours($hours)
160
    {
161
        $this->hours = $hours;
162
163
        return $this;
164
    }
165
166
    /**
167
     * Get hours
168
     *
169
     * @return integer
170
     */
171
    public function getHours()
172
    {
173
        return $this->hours;
174
    }
175
176
    /**
177
     * Set agreement
178
     *
179
     * @param \AppBundle\Entity\Agreement $agreement
180
     *
181
     * @return Workday
182
     */
183
    public function setAgreement(\AppBundle\Entity\Agreement $agreement = null)
184
    {
185
        $this->agreement = $agreement;
186
187
        return $this;
188
    }
189
190
    /**
191
     * Get agreement
192
     *
193
     * @return \AppBundle\Entity\Agreement
194
     */
195
    public function getAgreement()
196
    {
197
        return $this->agreement;
198
    }
199
}
200