3b70b35b4ea8636855764eb267e7a586d94784d2
[rock.divinelegy.git] / Domain / Entities / File.php
1 <?php
2
3 namespace Domain\Entities;
4
5 use Domain\Entities\AbstractEntity;
6
7 class File extends AbstractEntity implements IFile
8 {
9 private $_hash;
10 private $_path;
11 private $_filename;
12 private $_mimetype;
13 private $_size;
14 private $_uploadDate;
15
16 public function __construct(
17 $hash,
18 $path,
19 $filename,
20 $mimetype,
21 $size,
22 $uploadDate
23 ) {
24 $this->_hash = $hash;
25 $this->_path = $path;
26 $this->_filename = $filename;
27 $this->_mimetype = $mimetype;
28 $this->_size = $size;
29 $this->_uploadDate = $uploadDate;
30 }
31
32 public function getFilename()
33 {
34 return $this->_filename;
35 }
36
37 public function getHash()
38 {
39 return $this->_hash;
40 }
41
42 public function getPath()
43 {
44 return $this->_path;
45 }
46
47 public function getMimetype()
48 {
49 return $this->_mimetype;
50 }
51
52 public function getSize()
53 {
54 return $this->_size;
55 }
56
57 public function getUploadDate()
58 {
59 return $this->_uploadDate;
60 }
61 }