1 | <?php |
||
4 | class SignUp |
||
5 | { |
||
6 | protected $id; |
||
7 | protected $name; |
||
8 | protected $email; |
||
9 | protected $password; |
||
10 | |||
11 | public function __construct($name, $email, $password) |
||
12 | { |
||
13 | $this->id = uniqid(); |
||
14 | $this->name = $name; |
||
15 | $this->email = $email; |
||
16 | $this->password = $password; |
||
17 | } |
||
18 | |||
19 | /** |
||
20 | * @return string |
||
21 | */ |
||
22 | public function getId() |
||
26 | |||
27 | /** |
||
28 | * @return mixed |
||
29 | */ |
||
30 | public function getName() |
||
34 | |||
35 | /** |
||
36 | * @param mixed $name |
||
37 | */ |
||
38 | public function setName($name) |
||
42 | |||
43 | /** |
||
44 | * @return mixed |
||
45 | */ |
||
46 | public function getEmail() |
||
50 | |||
51 | /** |
||
52 | * @param mixed $email |
||
53 | */ |
||
54 | public function setEmail($email) |
||
58 | |||
59 | /** |
||
60 | * @return mixed |
||
61 | */ |
||
62 | public function getPassword() |
||
66 | |||
67 | /** |
||
68 | * @param mixed $password |
||
69 | */ |
||
70 | public function setPassword($password) |
||
74 | } |