1 | <?php |
||
17 | class User extends \SimpleORM\AbstractEntity { |
||
18 | |||
19 | protected $email; |
||
20 | protected $name; |
||
21 | protected $password; |
||
22 | protected $group; |
||
23 | protected $address; |
||
24 | |||
25 | function __construct($name, $email, $password, UserGroup $Group) { |
||
34 | |||
35 | function setAddress($address) { |
||
38 | |||
39 | function getEmail() { |
||
42 | |||
43 | function getName() { |
||
46 | |||
47 | function getPassword() { |
||
50 | |||
51 | function getGroup() { |
||
54 | |||
55 | function setEmail($email) { |
||
58 | |||
59 | function setName($name) { |
||
62 | |||
63 | function setPassword($password) { |
||
66 | |||
67 | function setGroup($group) { |
||
70 | |||
71 | |||
72 | } |
||
73 |
Adding explicit visibility (
private
,protected
, orpublic
) is generally recommend to communicate to other developers how, and from where this method is intended to be used.