/** * @param Floor $floor * @return Resident */ public static function createOnTheFloor(Floor $floor) { $resident = new Resident(); $resident->setCurrentFloor($floor); return $resident; }