Completed
Push — master ( 5f42d6...d3256d )
by Luis Ramón
13:49
created

Data::getMtime()   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-2017: 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 Data
29
{
30
    /**
31
     * @ORM\Id
32
     * @ORM\Column(type="string")
33
     */
34
    private $key;
35
36
    /**
37
     * @ORM\Column(type="blob")
38
     */
39
    private $content;
40
41
    /**
42
     * @ORM\Column(type="integer")
43
     */
44
    private $mtime;
45
46
    /**
47
     * @ORM\Column(type="string")
48
     */
49
    private $checksum;
50
51
    /**
52
     * Set key
53
     *
54
     * @param string $key
55
     *
56
     * @return Data
57
     */
58
    public function setKey($key)
59
    {
60
        $this->key = $key;
61
62
        return $this;
63
    }
64
65
    /**
66
     * Get key
67
     *
68
     * @return string
69
     */
70
    public function getKey()
71
    {
72
        return $this->key;
73
    }
74
75
    /**
76
     * Set content
77
     *
78
     * @param string $content
79
     *
80
     * @return Data
81
     */
82
    public function setContent($content)
83
    {
84
        $this->content = $content;
85
86
        return $this;
87
    }
88
89
    /**
90
     * Get content
91
     *
92
     * @return string
93
     */
94
    public function getContent()
95
    {
96
        return $this->content;
97
    }
98
99
    /**
100
     * Set mtime
101
     *
102
     * @param integer $mtime
103
     *
104
     * @return Data
105
     */
106
    public function setMtime($mtime)
107
    {
108
        $this->mtime = $mtime;
109
110
        return $this;
111
    }
112
113
    /**
114
     * Get mtime
115
     *
116
     * @return integer
117
     */
118
    public function getMtime()
119
    {
120
        return $this->mtime;
121
    }
122
123
    /**
124
     * Set checksum
125
     *
126
     * @param string $checksum
127
     *
128
     * @return Data
129
     */
130
    public function setChecksum($checksum)
131
    {
132
        $this->checksum = $checksum;
133
134
        return $this;
135
    }
136
137
    /**
138
     * Get checksum
139
     *
140
     * @return string
141
     */
142
    public function getChecksum()
143
    {
144
        return $this->checksum;
145
    }
146
}
147