Exemplo n.º 1
0
 public function __construct($roomNumber, $price)
 {
     parent::__construct(RoomType::Diamond, true, true, 4, ['TV', 'Air-conditioner', 'refrigerator', 'kitchen box', 'mini-bar', 'bathtub', 'free Wi-Fi'], $roomNumber, $price);
 }
Exemplo n.º 2
0
 public static function bookRoom(Room $room, Reservation $reservation)
 {
     $room->addReservation($reservation);
     echo "\nRoom <strong>" . $room->getRoomNumber() . "</strong>\n" . "successfully booked for\n" . "<strong>" . $reservation->getGuest()->getFirstName() . " " . $reservation->getGuest()->getLastName() . "</strong>\n" . "from <time>" . $reservation->getStartDate() . "</time> to\n" . "<time>" . $reservation->getEndDate() . "</time>!\n";
 }
Exemplo n.º 3
0
 public function __construct($roomNumber, $price)
 {
     parent::__construct(RoomType::Standard, true, false, 1, ['TV', 'Air-conditioner'], $roomNumber, $price);
 }
Exemplo n.º 4
0
 public function __construct($roomNumber, $price)
 {
     parent::__construct(RoomType::Gold, true, true, 2, ['TV', 'Air-conditioner', 'refrigerator', 'mini-bar', 'bathtub'], $roomNumber, $price);
 }