Pack::getMd5sum()   A
last analyzed

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
namespace Xdaysaysay\CoreBundle\Entity;
4
5
use Doctrine\ORM\Mapping as ORM;
6
7
/**
8
 * @ORM\Entity
9
 * @ORM\Table(name="pack")
10
 */
11
class Pack
12
{
13
    /**
14
     * @ORM\Id
15
     * @ORM\Column(type="integer", options={"unsigned"=true})
16
     */
17
    protected $id;
18
19
    /**
20
     * @ORM\Id
21
     * @ORM\ManyToOne(targetEntity="Xdaysaysay\CoreBundle\Entity\Xdcc", inversedBy="packs")
22
     * @ORM\JoinColumn(name="id_xdcc", referencedColumnName="id")
23
     */
24
    protected $xdcc;
25
26
    /**
27
     * @ORM\Column(type="string", length=255)
28
     */
29
    protected $name;
30
31
    /**
32
     * @ORM\Column(type="string", nullable=true, options={"unsigned"=true})
33
     */
34
    protected $size;
35
36
    /**
37
     * @ORM\Column(type="integer", nullable=true, options={"unsigned"=true})
38
     */
39
    protected $gets;
40
41
    /**
42
     * @ORM\Column(type="datetime", nullable=true)
43
     */
44
    protected $adddate;
45
46
    /**
47
     * @ORM\Column(type="string", nullable=true, length=32)
48
     */
49
    protected $md5sum;
50
51
    /**
52
     * @ORM\Column(type="string", nullable=true, length=8)
53
     */
54
    protected $crc32;
55
56
    /**
57
     * Set id
58
     *
59
     * @param integer $id
60
     * @return Pack
61
     */
62
    public function setId($id)
63
    {
64
        $this->id = $id;
65
66
        return $this;
67
    }
68
69
    /**
70
     * Get id
71
     *
72
     * @return integer
73
     */
74
    public function getId()
75
    {
76
        return $this->id;
77
    }
78
79
    /**
80
     * Set name
81
     *
82
     * @param string $name
83
     * @return Pack
84
     */
85
    public function setName($name)
86
    {
87
        $this->name = $name;
88
89
        return $this;
90
    }
91
92
    /**
93
     * Get name
94
     *
95
     * @return string
96
     */
97
    public function getName()
98
    {
99
        return $this->name;
100
    }
101
102
    /**
103
     * Set size
104
     *
105
     * @param integer $size
106
     * @return Pack
107
     */
108
    public function setSize($size)
109
    {
110
        $this->size = $size;
111
112
        return $this;
113
    }
114
115
    /**
116
     * Get size
117
     *
118
     * @return integer
119
     */
120
    public function getSize()
121
    {
122
        return $this->size;
123
    }
124
125
    /**
126
     * Set gets
127
     *
128
     * @param integer $gets
129
     * @return Pack
130
     */
131
    public function setGets($gets)
132
    {
133
        $this->gets = $gets;
134
135
        return $this;
136
    }
137
138
    /**
139
     * Get gets
140
     *
141
     * @return integer
142
     */
143
    public function getGets()
144
    {
145
        return $this->gets;
146
    }
147
148
    /**
149
     * Set adddate
150
     *
151
     * @param \DateTime $adddate
152
     * @return Pack
153
     */
154
    public function setAdddate($adddate)
155
    {
156
        $this->adddate = $adddate;
157
158
        return $this;
159
    }
160
161
    /**
162
     * Get adddate
163
     *
164
     * @return \DateTime
165
     */
166
    public function getAdddate()
167
    {
168
        return $this->adddate;
169
    }
170
171
    /**
172
     * Set md5sum
173
     *
174
     * @param string $md5sum
175
     * @return Pack
176
     */
177
    public function setMd5sum($md5sum)
178
    {
179
        $this->md5sum = $md5sum;
180
181
        return $this;
182
    }
183
184
    /**
185
     * Get md5sum
186
     *
187
     * @return string
188
     */
189
    public function getMd5sum()
190
    {
191
        return $this->md5sum;
192
    }
193
194
    /**
195
     * Set crc32
196
     *
197
     * @param string $crc32
198
     * @return Pack
199
     */
200
    public function setCrc32($crc32)
201
    {
202
        $this->crc32 = $crc32;
203
204
        return $this;
205
    }
206
207
    /**
208
     * Get crc32
209
     *
210
     * @return string
211
     */
212
    public function getCrc32()
213
    {
214
        return $this->crc32;
215
    }
216
217
    /**
218
     * Set xdcc
219
     *
220
     * @param Xdcc $xdcc
221
     * @return Pack
222
     */
223
    public function setXdcc(Xdcc $xdcc)
224
    {
225
        $this->xdcc = $xdcc;
226
227
        return $this;
228
    }
229
230
    /**
231
     * Get xdcc
232
     *
233
     * @return Xdcc
234
     */
235
    public function getXdcc()
236
    {
237
        return $this->xdcc;
238
    }
239
}
240