Work on making country nullable. Presently the datamapper cant deal with it though...
[rock.divinelegy.git] / Domain / Entities / User.php
1 <?php
2
3 namespace Domain\Entities;
4
5 use Domain\Entities\IUser;
6 use Domain\Entities\AbstractEntity;
7 use Domain\VOs\ICountry;
8 use Domain\VOs\IName;
9
10 class User extends AbstractEntity implements IUser
11 {
12 private $_country;
13 private $_displayName;
14 private $_name;
15 private $_tags;
16 private $_yearsStepArtist;
17 private $_facebookId;
18 private $_quota;
19
20 public function __construct(
21 ICountry $country = null,
22 $displayName,
23 IName $name,
24 array $tags,
25 $facebookId,
26 $quota //TODO: Maybe quota should be implemented as an object?
27 ) {
28 $this->_country = $country;
29 $this->_displayName = $displayName;
30 $this->_name = $name;
31 $this->_tags = $tags;
32 $this->_facebookId = $facebookId;
33 $this->_quota = $quota;
34 }
35
36 public function getCountry() {
37 return $this->_country;
38 }
39
40 public function getDisplayName() {
41 return $this->_displayName;
42 }
43
44 public function getName() {
45 return $this->_name;
46 }
47
48 public function getTags() {
49 return $this->_tags;
50 }
51
52 public function getFacebookId()
53 {
54 return $this->_facebookId;
55 }
56
57 public function setFacebookId($id)
58 {
59 $this->_facebookId = $id;
60 }
61
62 public function getYearsStepArtist()
63 {
64 return $this->_yearsStepArtist;
65 }
66
67 public function getQuota()
68 {
69 return $this->_quota;
70 }
71
72 public function setDisplayName($displayName)
73 {
74 $this->_displayName = $displayName;
75 }
76
77 public function setCountry(ICountry $country = null)
78 {
79 $this->_country = $country;
80 }
81 }