FileHistory::setFileName()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
3
/**
4
 * Copyright 2014 Jonathan Bouzekri. All rights reserved.
5
 *
6
 * @copyright Copyright 2014 Jonathan Bouzekri <[email protected]>
7
 * @license https://github.com/jbouzekri/FileUploaderBundle/blob/master/LICENSE
8
 * @link https://github.com/jbouzekri/FileUploaderBundle
9
 */
10
11
namespace Jb\Bundle\FileUploaderBundle\Entity;
12
13
use Doctrine\ORM\Mapping as ORM;
14
15
/**
16
 * FileHistory
17
 *
18
 * @ORM\Entity
19
 * @ORM\Table(name="jb_filehistory")
20
 */
21
class FileHistory
22
{
23
    /**
24
     * @ORM\Id
25
     * @ORM\GeneratedValue(strategy="NONE")
26
     * @ORM\Column(type="string", length=255, name="file_name")
27
     *
28
     * @var string
29
     */
30
    protected $fileName;
31
32
    /**
33
     * @ORM\Column(type="string", length=255, name="original_name")
34
     *
35
     * @var string
36
     */
37
    protected $originalName;
38
39
    /**
40
     * @ORM\Column(type="string", length=255)
41
     *
42
     * @var string
43
     */
44
    protected $type;
45
46
    /**
47
     * @ORM\Column(type="integer", nullable=true)
48
     *
49
     * @var int
50
     */
51
    protected $userId;
52
53
    /**
54
     * Set fileName
55
     *
56
     * @param string $fileName
57
     * @return FileHistory
58
     */
59
    public function setFileName($fileName)
60
    {
61
        $this->fileName = $fileName;
62
63
        return $this;
64
    }
65
66
    /**
67
     * Get fileName
68
     *
69
     * @return string
70
     */
71
    public function getFileName()
72
    {
73
        return $this->fileName;
74
    }
75
76
    /**
77
     * Set originalName
78
     *
79
     * @param string $originalName
80
     * @return FileHistory
81
     */
82
    public function setOriginalName($originalName)
83
    {
84
        $this->originalName = $originalName;
85
86
        return $this;
87
    }
88
89
    /**
90
     * Get originalName
91
     *
92
     * @return string
93
     */
94
    public function getOriginalName()
95
    {
96
        return $this->originalName;
97
    }
98
99
    /**
100
     * Set userId
101
     *
102
     * @param integer $userId
103
     * @return FileHistory
104
     */
105
    public function setUserId($userId)
106
    {
107
        $this->userId = $userId;
108
109
        return $this;
110
    }
111
112
    /**
113
     * Get userId
114
     *
115
     * @return integer
116
     */
117
    public function getUserId()
118
    {
119
        return $this->userId;
120
    }
121
122
    /**
123
     * Set type
124
     *
125
     * @param string $type
126
     * @return FileHistory
127
     */
128
    public function setType($type)
129
    {
130
        $this->type = $type;
131
132
        return $this;
133
    }
134
135
    /**
136
     * Get type
137
     *
138
     * @return string
139
     */
140
    public function getType()
141
    {
142
        return $this->type;
143
    }
144
}
145