projects
/
rock.divinelegy.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Work on making country nullable. Presently the datamapper cant deal with it though...
[rock.divinelegy.git]
/
Domain
/
Entities
/
UserFactory.php
1
<
?php
2
3
namespace
Domain\Entities
;
4
5
use
Domain\VOs\ICountry
;
6
use
Domain\VOs\IName
;
7
use
Domain\Entities\User
;
8
9
interface
IUserFactory
10
{
11
public function
createInstance
(
12
ICountry
$country
,
13
$displayName
,
14
IName
$name
,
15
array
$tags
,
16
$facebookId
,
17
$quota
18
);
19
}
20
21
class
UserFactory
implements
IUserFactory
22
{
23
public function
createInstance
(
24
ICountry
$country
=
null
,
25
$displayName
,
26
IName
$name
,
27
array
$tags
,
28
$facebookId
,
29
$quota
30
) {
31
return new
User
(
32
$country
,
33
$displayName
,
34
$name
,
35
$tags
,
36
$facebookId
,
37
$quota
38
);
39
}
40
}