1 | <?php |
||
10 | class Subject |
||
11 | { |
||
12 | private $name; |
||
13 | private $surname; |
||
14 | private $birthDate; |
||
15 | private $gender; |
||
16 | private $belfioreCode; |
||
17 | |||
18 | /** |
||
19 | * Create a Codice Fiscale instance. |
||
20 | * |
||
21 | * @param array $properties An array with all the properties. |
||
22 | * Supported keys are: |
||
23 | * - name: the name; |
||
24 | * - surname: the surname; |
||
25 | * - birthDate: the birth date; |
||
26 | * - gender: the gender; |
||
27 | * - belfioreCode: the Belfiore code. |
||
28 | */ |
||
29 | 10 | public function __construct($properties) |
|
55 | |||
56 | /** |
||
57 | * Get the name. |
||
58 | * |
||
59 | * @return Returns the name. |
||
60 | */ |
||
61 | 22 | public function getName() |
|
65 | |||
66 | /** |
||
67 | * Set the name. |
||
68 | */ |
||
69 | 1 | public function setName($name) |
|
73 | |||
74 | /** |
||
75 | * Get the name. |
||
76 | * |
||
77 | * @return Returns the name. |
||
78 | */ |
||
79 | 22 | public function getSurname() |
|
83 | |||
84 | /** |
||
85 | * Set the surname. |
||
86 | */ |
||
87 | 1 | public function setSurname($surname) |
|
91 | |||
92 | /** |
||
93 | * Get the birthDate. |
||
94 | * |
||
95 | * @return Returns the birthDate. |
||
96 | */ |
||
97 | 22 | public function getBirthDate() |
|
101 | |||
102 | /** |
||
103 | * Set the birthDate. |
||
104 | */ |
||
105 | 1 | public function setBirthDate($birthDate) |
|
109 | |||
110 | /** |
||
111 | * Get the gender. |
||
112 | * |
||
113 | * @return Returns the gender. |
||
114 | */ |
||
115 | 22 | public function getGender() |
|
119 | |||
120 | /** |
||
121 | * Set the gender. |
||
122 | */ |
||
123 | 1 | public function setGender($gender) |
|
127 | |||
128 | /** |
||
129 | * Get the belfioreCode. |
||
130 | * |
||
131 | * @return Returns the belfioreCode. |
||
132 | */ |
||
133 | 22 | public function getBelfioreCode() |
|
137 | |||
138 | /** |
||
139 | * Set the belfioreCode. |
||
140 | */ |
||
141 | 1 | public function setBelfioreCode($belfioreCode) |
|
145 | } |
||
146 |