3 * An interface for all personells
5 * @author Roland Haeder <roland __NOSPAM__ [at] __REMOVE_ME__ mxchange [dot] org>
8 interface Personellizer extends FrameworkInterface {
9 ///////////////////////
10 /// General methods ///
11 ///////////////////////
18 function removeMinMaxAge ();
21 * Create a valid birthday
25 function createBirthday ();
28 * Verify if given year/month/day is a valid date combination
30 * @param $year 4-digit year (valid : 2007, 1946,
31 * invalid: 24, 2a, aa)
32 * @param $month 1 to 2-digit month (range: 1 to 12)
33 * @param $day 1 to 2-digit day (range: 1 to 31/30/29/28)
34 * @return boolean true = date is valid,
35 * false = date is invalid
37 function isDateValid ($year, $month, $day);
39 /////////////////////////
40 //// Status requests ////
41 /////////////////////////
44 * Is the person employed?
46 * @return boolean true = person is employed
47 * false = person is umemployed
49 function isEmployed ();
52 * Is the person married? (to which one doesn't matter here)
54 * @return boolean true = person is married
55 * false = person is not married
57 function isMarried ();
60 * Is the person a male?
62 * @return boolean true = person is male
63 * false = person is not male (maybe female? ;-))
68 * Is the person a female?
70 * @return boolean true = person is female
71 * false = person is not female (maybe male? ;-))
82 * @return $surname The person's surname
84 function getSurname ();
87 * Getter for family name
89 * @return $family The person's family name
91 function getFamily ();
96 * @return $gender The person's gender (F/M)
98 function getGender ();
103 * @return $salary The person's current salary
105 function getSalary ();
114 * @param $surname The person's new surname as a string
117 function setSurname ($surname);
120 * Setter for family name
122 * @param $family The person's new family name as a string
125 function setFamily ($family);
128 * Setter for gender. Do not use this so often... ;-)
129 * This method shall only be used when the person is "created"
131 * @param $gender The person's new gender as a 1-char string (M/F)
134 function setGender ($gender);
137 * Setter for employment status
139 * @param $employed The person's new employment stats
142 function setEmployed ($employed);
145 * Setter for marrital status
147 * @param $married The person's new marrital status
150 function setMarried ($married);
153 * Setter for a already validated birthday.
155 * @param $year The person's new year-of-birth (4 digits)
156 * @param $month The person's new month-of-birth (1 to 2 digits)
157 * @param $day The person's new day-of-birth (1 to 2 digits)
160 function setBirthday ($year, $month, $day);
162 /////////////////////////////////////
163 //// Methods for changing salary ////
164 /////////////////////////////////////
167 * Increase person's salary by a specified amount
169 * @param $add Add this float amount to current salary
172 function increaseSalary ($add);
175 * Decrease person's salary by a specified amount
177 * @param $sub Subtract this float amount to current salary
180 function decreaseSalary ($sub);