projects
/
rock.divinelegy.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
dd66810291559ea08dde4d482cf098cc73b8a3ec
[rock.divinelegy.git]
/
Domain
/
Entities
/
FileFactory.php
1
<
?php
2
3
namespace
Domain\Entities
;
4
5
use
Domain\Entities\File
;
6
7
interface
IFileFactory
8
{
9
public function
createInstance
(
10
$hash
,
11
$path
,
12
$filename
,
13
$mimetype
,
14
$size
,
15
$uploadDate
16
);
17
}
18
19
class
FileFactory
implements
IFileFactory
20
{
21
public function
createInstance
(
22
$hash
,
23
$path
,
24
$filename
,
25
$mimetype
,
26
$size
,
27
$uploadDate
28
) {
29
return new
File
(
30
$hash
,
31
$path
,
32
$filename
,
33
$mimetype
,
34
$size
,
35
$uploadDate
36
);
37
}
38
}