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.

Tracking   A
last analyzed

Complexity

Total Complexity 8

Size/Duplication

Total Lines 125
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

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

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 7 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(repositoryClass="TrackingRepository")
27
 */
28
class Tracking
29
{
30
    /**
31
     * @ORM\Id
32
     * @ORM\ManyToOne(targetEntity="Workday", inversedBy="trackingActivities")
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="float")
52
     * @var float
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 float $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 float
98
     */
99
    public function getHours()
100
    {
101
        return $this->hours;
102
    }
103
104
    /**
105
     * Set workday
106
     *
107
     * @param Workday $workday
108
     *
109
     * @return Tracking
110
     */
111
    public function setWorkday(Workday $workday)
112
    {
113
        $this->workday = $workday;
114
        $workday->addTrackingActivity($this);
115
116
        return $this;
117
    }
118
119
    /**
120
     * Get workday
121
     *
122
     * @return Workday
123
     */
124
    public function getWorkday()
125
    {
126
        return $this->workday;
127
    }
128
129
    /**
130
     * Set activity
131
     *
132
     * @param Activity $activity
133
     *
134
     * @return Tracking
135
     */
136
    public function setActivity(Activity $activity)
137
    {
138
        $this->activity = $activity;
139
140
        return $this;
141
    }
142
143
    /**
144
     * Get activity
145
     *
146
     * @return Activity
147
     */
148
    public function getActivity()
149
    {
150
        return $this->activity;
151
    }
152
}
153