1 | <?php |
||
10 | class UploadImage |
||
11 | { |
||
12 | /** |
||
13 | * @var UUID |
||
14 | */ |
||
15 | protected $fileId; |
||
16 | |||
17 | /** |
||
18 | * @var Language |
||
19 | */ |
||
20 | protected $language; |
||
21 | |||
22 | /** |
||
23 | * @var StringLiteral |
||
24 | */ |
||
25 | protected $description; |
||
26 | |||
27 | /** |
||
28 | * @var StringLiteral |
||
29 | */ |
||
30 | protected $copyrightHolder; |
||
31 | |||
32 | /** |
||
33 | * @var MIMEType |
||
34 | */ |
||
35 | protected $mimeType; |
||
36 | |||
37 | /** |
||
38 | * @var StringLiteral |
||
39 | */ |
||
40 | protected $filePath; |
||
41 | /** |
||
42 | * @param UUID $fileId |
||
43 | * @param MIMEType $mimeType |
||
44 | * @param StringLiteral $description |
||
45 | * @param StringLiteral $copyrightHolder |
||
46 | * @param StringLiteral $filePath |
||
47 | * @param Language $language |
||
48 | */ |
||
49 | public function __construct( |
||
50 | UUID $fileId, |
||
51 | MIMEType $mimeType, |
||
52 | StringLiteral $description, |
||
53 | StringLiteral $copyrightHolder, |
||
54 | StringLiteral $filePath, |
||
55 | Language $language |
||
56 | ) { |
||
57 | $this->fileId = $fileId; |
||
58 | $this->description = $description; |
||
59 | $this->copyrightHolder = $copyrightHolder; |
||
60 | $this->mimeType = $mimeType; |
||
61 | $this->filePath = $filePath; |
||
62 | $this->language = $language; |
||
63 | } |
||
64 | |||
65 | /** |
||
66 | * @return Language |
||
67 | */ |
||
68 | public function getLanguage() |
||
72 | |||
73 | /** |
||
74 | * @return UUID |
||
75 | */ |
||
76 | public function getFileId() |
||
80 | |||
81 | /** |
||
82 | * @return StringLiteral |
||
83 | */ |
||
84 | public function getDescription() |
||
88 | |||
89 | /** |
||
90 | * @return StringLiteral |
||
91 | */ |
||
92 | public function getCopyrightHolder() |
||
96 | |||
97 | /** |
||
98 | * @return MIMEType |
||
99 | */ |
||
100 | public function getMimeType() |
||
104 | |||
105 | /** |
||
106 | * @return StringLiteral |
||
107 | */ |
||
108 | public function getFilePath() |
||
112 | } |
||
113 |