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 ( 816dcd...da4808 )
by Luis Ramón
02:55
created

Activity::__toString()   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 Activity
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")
40
     * @var string
41
     */
42
    protected $name;
43
44
    /**
45
     * @ORM\Column(type="text", nullable=true)
46
     * @var string
47
     */
48
    protected $description;
49
50
    /**
51
     * @ORM\ManyToOne(targetEntity="Training", inversedBy="activities")
52
     * @ORM\JoinColumn(nullable=false)
53
     * @var Training
54
     */
55
    protected $training;
56
57
    /**
58
     * @ORM\Column(type="integer", nullable=true)
59
     * @var int
60
     */
61
    protected $orderNr;
62
63
    /**
64
     * Get id
65
     *
66
     * @return integer
67
     */
68
    public function getId()
69
    {
70
        return $this->id;
71
    }
72
73
    /**
74
     * @return string
75
     */
76
    public function __toString()
77
    {
78
        return $this->getName();
79
    }
80
81
    /**
82
     * Set name
83
     *
84
     * @param string $name
85
     *
86
     * @return Activity
87
     */
88
    public function setName($name)
89
    {
90
        $this->name = $name;
91
92
        return $this;
93
    }
94
95
    /**
96
     * Get name
97
     *
98
     * @return string
99
     */
100
    public function getName()
101
    {
102
        return $this->name;
103
    }
104
105
    /**
106
     * Set description
107
     *
108
     * @param string $description
109
     *
110
     * @return Activity
111
     */
112
    public function setDescription($description)
113
    {
114
        $this->description = $description;
115
116
        return $this;
117
    }
118
119
    /**
120
     * Get description
121
     *
122
     * @return string
123
     */
124
    public function getDescription()
125
    {
126
        return $this->description;
127
    }
128
129
    /**
130
     * Set training
131
     *
132
     * @param Training $training
133
     *
134
     * @return Activity
135
     */
136
    public function setTraining(Training $training = null)
137
    {
138
        $this->training = $training;
139
140
        return $this;
141
    }
142
143
    /**
144
     * Get training
145
     *
146
     * @return Training
147
     */
148
    public function getTraining()
149
    {
150
        return $this->training;
151
    }
152
153
    /**
154
     * Set order
155
     *
156
     * @param integer $orderNr
157
     *
158
     * @return Activity
159
     */
160
    public function setOrderNr($orderNr)
161
    {
162
        $this->orderNr = $orderNr;
163
164
        return $this;
165
    }
166
167
    /**
168
     * Get order
169
     *
170
     * @return integer
171
     */
172
    public function getOrderNr()
173
    {
174
        return $this->orderNr;
175
    }
176
}
177