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

Tracking   A

Complexity

Total Complexity 8

Size/Duplication

Total Lines 124
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

8 Methods

Rating   Name   Duplication   Size   Complexity  
A setNotes() 0 6 1
A getNotes() 0 4 1
A setHours() 0 6 1
A getHours() 0 4 1
A setWorkday() 0 6 1
A getWorkday() 0 4 1
A setActivity() 0 6 1
A getActivity() 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
25
/**
26
 * @ORM\Entity
27
 */
28
class Tracking
29
{
30
    /**
31
     * @ORM\Id
32
     * @ORM\ManyToOne(targetEntity="Workday")
33
     * @var Workday
34
     */
35
    protected $workday;
36
37
    /**
38
     * @ORM\Id
39
     * @ORM\ManyToOne(targetEntity="Activity")
40
     * @var Activity
41
     */
42
    protected $activity;
43
44
    /**
45
     * @ORM\Column(type="text", nullable=true)
46
     * @var string
47
     */
48
    protected $notes;
49
50
    /**
51
     * @ORM\Column(type="integer")
52
     * @var int
53
     */
54
    protected $hours;
55
56
    /**
57
     * Set notes
58
     *
59
     * @param string $notes
60
     *
61
     * @return Tracking
62
     */
63
    public function setNotes($notes)
64
    {
65
        $this->notes = $notes;
66
67
        return $this;
68
    }
69
70
    /**
71
     * Get notes
72
     *
73
     * @return string
74
     */
75
    public function getNotes()
76
    {
77
        return $this->notes;
78
    }
79
80
    /**
81
     * Set hours
82
     *
83
     * @param integer $hours
84
     *
85
     * @return Tracking
86
     */
87
    public function setHours($hours)
88
    {
89
        $this->hours = $hours;
90
91
        return $this;
92
    }
93
94
    /**
95
     * Get hours
96
     *
97
     * @return integer
98
     */
99
    public function getHours()
100
    {
101
        return $this->hours;
102
    }
103
104
    /**
105
     * Set workday
106
     *
107
     * @param \AppBundle\Entity\Workday $workday
108
     *
109
     * @return Tracking
110
     */
111
    public function setWorkday(\AppBundle\Entity\Workday $workday)
112
    {
113
        $this->workday = $workday;
114
115
        return $this;
116
    }
117
118
    /**
119
     * Get workday
120
     *
121
     * @return \AppBundle\Entity\Workday
122
     */
123
    public function getWorkday()
124
    {
125
        return $this->workday;
126
    }
127
128
    /**
129
     * Set activity
130
     *
131
     * @param \AppBundle\Entity\Activity $activity
132
     *
133
     * @return Tracking
134
     */
135
    public function setActivity(\AppBundle\Entity\Activity $activity)
136
    {
137
        $this->activity = $activity;
138
139
        return $this;
140
    }
141
142
    /**
143
     * Get activity
144
     *
145
     * @return \AppBundle\Entity\Activity
146
     */
147
    public function getActivity()
148
    {
149
        return $this->activity;
150
    }
151
}
152