setObjectNumber($object_number); $wall->setLeftObjectNumber($left_object_number); $wall->setRightObjectNumber($right_object_number); $room = new RoomInfo($room_number); $room->addWall($wall); break; case 2: $wall = new WallPeople($wall_number); $wall->setObjectNumber($object_number); $wall->setLeftObjectNumber($left_object_number); $wall->setRightObjectNumber($right_object_number); $room = new RoomPeople($room_number); $room->addWall($wall); break; case 3: $wall = new WallContact($wall_number); $wall->setObjectNumber($object_number); $wall->setLeftObjectNumber($left_object_number); $wall->setRightObjectNumber($right_object_number); $room = new RoomContact($room_number); $room->addWall($wall); break; case 4: $wall = new WallSearch($wall_number); $wall->setObjectNumber($object_number); $wall->setLeftObjectNumber($left_object_number); $wall->setRightObjectNumber($right_object_number); $wall->setSearchQuery($search_query); $room = new RoomSearch($room_number); $room->addWall($wall); break; case 5: $wall = new WallTeach($wall_number); $wall->setObjectNumber($object_number); $wall->setLeftObjectNumber($left_object_number); $wall->setRightObjectNumber($right_object_number); $room = new RoomTeach($room_number); $room->addWall($wall); break; case 6: $wall = new WallSport($wall_number); $wall->setObjectNumber($object_number); $wall->setLeftObjectNumber($left_object_number); $wall->setRightObjectNumber($right_object_number); $room = new RoomSport($room_number); $room->addWall($wall); break; case 7: $wall = new WallLink($wall_number); $wall->setObjectNumber($object_number); $wall->setLeftObjectNumber($left_object_number); $wall->setRightObjectNumber($right_object_number); $room = new RoomLink($room_number); $room->addWall($wall); break; default: $wall = new WallEntrance($wall_number); $wall->setObjectNumber($object_number); $wall->setLeftObjectNumber($left_object_number); $wall->setRightObjectNumber($right_object_number); $room = new RoomEntrance($room_number); $room->addWall($wall); break; } // $room->addWall($wall_number, $object_number); $room->build(); ?>