/** * getter for patients array * @return integer|Patients[string][integer] */ public static function getPatients() { $person1 = new Patients(); $person1->setPerson(1, "John", 67, "Male"); $person2 = new Patients(); $person2->setPerson(2, "Mary", 75, "Female"); $patientArray = array(1 => array('ID' => 1, 'Patient' => $person1), 2 => array('ID' => 2, 'Patient' => $person2)); return $patientArray; }