Observacion::setFecha()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 6
c 0
b 0
f 0
ccs 0
cts 5
cp 0
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
crap 2
1
<?php
2
/*
3
  GESTCONV - Aplicación web para la gestión de la convivencia en centros educativos
4
5
  Copyright (C) 2015: 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\MappedSuperclass
27
 */
28
class Observacion
29
{
30
    /**
31
     * @ORM\Id
32
     * @ORM\Column(type="integer")
33
     * @ORM\GeneratedValue
34
     */
35
    protected $id;
36
37
    /**
38
     * @ORM\ManyToOne(targetEntity="Usuario")
39
     * @ORM\JoinColumn(nullable=false)
40
     */
41
    protected $usuario;
42
    /**
43
     * @ORM\Column(type="datetime", nullable=false)
44
     * @var \DateTime
45
     */
46
    protected $fecha;
47
    /**
48
     * @ORM\Column(type="string", nullable=false)
49
     * @var string
50
     */
51
    protected $anotacion;
52
53
    /**
54
     * Get id
55
     *
56
     * @return integer 
57
     */
58
    public function getId()
59
    {
60
        return $this->id;
61
    }
62
63
    /**
64
     * Set usuario
65
     *
66
     * @param Usuario $usuario
67
     * @return self
68
     */
69
    public function setUsuario(Usuario $usuario = null)
70
    {
71
        $this->usuario = $usuario;
72
73
        return $this;
74
    }
75
76
    /**
77
     * Get usuario
78
     *
79
     * @return Usuario
80
     */
81
    public function getUsuario()
82
    {
83
        return $this->usuario;
84
    }
85
86
    /**
87
     * Set fecha
88
     *
89
     * @param \DateTime $fecha
90
     * @return self
91
     */
92
    public function setFecha($fecha)
93
    {
94
        $this->fecha = $fecha;
95
96
        return $this;
97
    }
98
99
    /**
100
     * Get fecha
101
     *
102
     * @return \DateTime 
103
     */
104
    public function getFecha()
105
    {
106
        return $this->fecha;
107
    }
108
109
    /**
110
     * Set anotacion
111
     *
112
     * @param string $anotacion
113
     * @return self
114
     */
115
    public function setAnotacion($anotacion)
116
    {
117
        $this->anotacion = $anotacion;
118
119
        return $this;
120
    }
121
122
    /**
123
     * Get anotacion
124
     *
125
     * @return string 
126
     */
127
    public function getAnotacion()
128
    {
129
        return $this->anotacion;
130
    }
131
}
132