Media::setFileSize()   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
c 0
b 0
f 0
dl 0
loc 6
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
3
namespace Media\Entity;
4
5
use Doctrine\ORM\Mapping as ORM;
6
7
class Media
8
{
9
10
    /**
11
     *
12
     * @var resource
13
     */
14
    protected $fileContent;
15
16
    /**
17
     *
18
     * @var string
19
     * 
20
     * @ORM\Column(type="string")
21
     */
22
    protected $context;
23
    
24
    /**
25
     *
26
     * @var string
27
     * 
28
     * @ORM\Column(type="string", name="file_name")
29
     */
30
    protected $fileName;
31
32
    /**
33
     *
34
     * @var string
35
     * 
36
     * @ORM\Column(type="string", name="file_type")
37
     */
38
    protected $fileType;
39
40
    /**
41
     *
42
     * @var int
43
     * 
44
     * @ORM\Column(type="integer", name="file_size")
45
     */
46
    protected $fileSize;
47
48
    /**
49
     *
50
     * @var array
51
     * 
52
     * @ORM\Column(type="array", nullable=true)
53
     */
54
    protected $metadata;
55
    
56
    /**
57
     * 
58
     * @return resource
59
     */
60
    public function getFileContent()
61
    {
62
        return $this->fileContent;
63
    }
64
65
    /**
66
     * 
67
     * @param resource $fileContent
68
     * 
69
     * @return $this
70
     */
71
    public function setFileContent($fileContent)
72
    {
73
        $this->fileContent = $fileContent;
74
75
        return $this;
76
    }
77
78
    /**
79
     * Set context
80
     *
81
     * @param string $context
82
     *
83
     * @return Media
84
     */
85
    public function setContext($context)
86
    {
87
        $this->context = $context;
88
89
        return $this;
90
    }
91
92
    /**
93
     * Get context
94
     *
95
     * @return string
96
     */
97
    public function getContext()
98
    {
99
        return $this->context;
100
    }
101
102
    /**
103
     * Set fileName
104
     *
105
     * @param string $fileName
106
     *
107
     * @return Media
108
     */
109
    public function setFileName($fileName)
110
    {
111
        $this->fileName = $fileName;
112
113
        return $this;
114
    }
115
116
    /**
117
     * Get fileName
118
     *
119
     * @return string
120
     */
121
    public function getFileName()
122
    {
123
        return $this->fileName;
124
    }
125
126
    /**
127
     * Set fileType
128
     *
129
     * @param string $fileType
130
     *
131
     * @return Media
132
     */
133
    public function setFileType($fileType)
134
    {
135
        $this->fileType = $fileType;
136
137
        return $this;
138
    }
139
140
    /**
141
     * Get fileType
142
     *
143
     * @return string
144
     */
145
    public function getFileType()
146
    {
147
        return $this->fileType;
148
    }
149
150
    /**
151
     * Set fileSize
152
     *
153
     * @param integer $fileSize
154
     *
155
     * @return Media
156
     */
157
    public function setFileSize($fileSize)
158
    {
159
        $this->fileSize = $fileSize;
160
161
        return $this;
162
    }
163
164
    /**
165
     * Get fileSize
166
     *
167
     * @return integer
168
     */
169
    public function getFileSize()
170
    {
171
        return $this->fileSize;
172
    }
173
174
    /**
175
     * Set metadata
176
     *
177
     * @param array $metadata
178
     *
179
     * @return Media
180
     */
181
    public function setMetadata($metadata)
182
    {
183
        $this->metadata = $metadata;
184
185
        return $this;
186
    }
187
188
    /**
189
     * Get metadata
190
     *
191
     * @return array
192
     */
193
    public function getMetadata()
194
    {
195
        return $this->metadata;
196
    }
197
198
}
199