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 — criterios ( 85d533 )
by Luis Ramón
10:14
created

Criterion::getOrderNr()   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 Criterion
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="string", nullable=true)
40
     * @var string
41
     */
42
    protected $code;
43
44
    /**
45
     * @ORM\Column(type="text")
46
     * @var string
47
     */
48
    protected $name;
49
50
    /**
51
     * @ORM\Column(type="text", nullable=true)
52
     * @var string
53
     */
54
    protected $description;
55
56
    /**
57
     * @ORM\ManyToOne(targetEntity="LearningOutcome", inversedBy="criteria")
58
     * @ORM\JoinColumn(nullable=true)
59
     * @var LearningOutcome
60
     */
61
    protected $learningOutcome;
62
63
    /**
64
     * @ORM\Column(type="integer", nullable=true)
65
     * @var int
66
     */
67
    protected $orderNr;
68
69
    /**
70
     * Get id
71
     *
72
     * @return integer
73
     */
74
    public function getId()
75
    {
76
        return $this->id;
77
    }
78
79
    /**
80
     * @return string
81
     */
82
    public function __toString()
83
    {
84
        return $this->getCode() ? $this->getCode() . ': ' . $this->getName() : $this->getName();
85
    }
86
87
    /**
88
     * Set name
89
     *
90
     * @param string $name
91
     *
92
     * @return Criterion
93
     */
94
    public function setName($name)
95
    {
96
        $this->name = $name;
97
98
        return $this;
99
    }
100
101
    /**
102
     * Get name
103
     *
104
     * @return string
105
     */
106
    public function getName()
107
    {
108
        return $this->name;
109
    }
110
111
    /**
112
     * Set description
113
     *
114
     * @param string $description
115
     *
116
     * @return Criterion
117
     */
118
    public function setDescription($description)
119
    {
120
        $this->description = $description;
121
122
        return $this;
123
    }
124
125
    /**
126
     * Get description
127
     *
128
     * @return string
129
     */
130
    public function getDescription()
131
    {
132
        return $this->description;
133
    }
134
135
    /**
136
     * Set order
137
     *
138
     * @param integer $orderNr
139
     *
140
     * @return Criterion
141
     */
142
    public function setOrderNr($orderNr)
143
    {
144
        $this->orderNr = $orderNr;
145
146
        return $this;
147
    }
148
149
    /**
150
     * Get order
151
     *
152
     * @return integer
153
     */
154
    public function getOrderNr()
155
    {
156
        return $this->orderNr;
157
    }
158
159
    /**
160
     * Set code
161
     *
162
     * @param string $code
163
     *
164
     * @return Criterion
165
     */
166
    public function setCode($code)
167
    {
168
        $this->code = $code;
169
170
        return $this;
171
    }
172
173
    /**
174
     * Get code
175
     *
176
     * @return string
177
     */
178
    public function getCode()
179
    {
180
        return $this->code;
181
    }
182
183
    /**
184
     * Set learningOutcome
185
     *
186
     * @param \AppBundle\Entity\LearningOutcome $learningOutcome
187
     *
188
     * @return Criterion
189
     */
190
    public function setLearningOutcome(\AppBundle\Entity\LearningOutcome $learningOutcome = null)
191
    {
192
        $this->learningOutcome = $learningOutcome;
193
194
        return $this;
195
    }
196
197
    /**
198
     * Get learningOutcome
199
     *
200
     * @return \AppBundle\Entity\LearningOutcome
201
     */
202
    public function getLearningOutcome()
203
    {
204
        return $this->learningOutcome;
205
    }
206
}
207