Exemple #1
0
 function create($record)
 {
     $result = new Geld($record["id"], $record["betreff"], $record["datum"], $record["betrag"], $record["istGeld"], $record["istGuthaben"], $record["bewohnerId"]);
     $factory = new BewohnerFactory();
     $result->bewohner = $factory->createJoined($record);
     return $result;
 }
Exemple #2
0
 function create($record)
 {
     $result = new Belegung($record["id"], $record["bewohnerId"], $record["zimmer"], $record["start"], $record["ende"]);
     $factory = new BewohnerFactory();
     $result->bewohner = $factory->createJoined($record);
     return $result;
 }