function __construct($roomNumber, $price) { if (!empty($roomNumber) && ctype_digit($roomNumber) && !empty($price) && is_numeric($price)) { parent::__construct(intval($roomNumber), doubleval($price), self::BED_COUNT, self::HAS_BALCONY, new RoomType(RoomType::DIAMOND), self::EXTRAS, self::HAS_RESTROOM); } else { throw new InvalidArgumentException("Invalid parameters provided."); } }
function __construct($roomNumber, $price) { parent::__construct($roomNumber, Bedroom::BED_COUNT, $price, true, true, RoomType::GOLD); $this->addExtras(Extra::TV); $this->addExtras(Extra::AIR_CONDITIONER); $this->addExtras(Extra::REFRIGERATOR); $this->addExtras(Extra::MINI_BAR); $this->addExtras(Extra::BATHTUB); }
function __construct($roomNumber, $price) { parent::__construct($roomNumber, Apartment::BED_COUNT, $price, true, true, RoomType::DIAMOND); $this->addExtras(Extra::TV); $this->addExtras(Extra::AIR_CONDITIONER); $this->addExtras(Extra::REFRIGERATOR); $this->addExtras(Extra::MINI_BAR); $this->addExtras(Extra::BATHTUB); $this->addExtras(Extra::FREE_WI_FI); $this->addExtras(Extra::KITCHEN_BOX); }
function __construct($roomId, $price) { parent::__construct($roomId, 4, RoomType::DIAMOND, true, true, $price); $this->setExtras(Extra::TV); $this->setExtras(Extra::AIR_CONDITIONER); $this->setExtras(Extra::REFRIGERATOR); $this->setExtras(Extra::MINI_BAR); $this->setExtras(Extra::BATHTUB); $this->setExtras(Extra::KITCHEN_BOX); $this->setExtras(Extra::BATHTUB); }
function __construct($roomNumber, $price) { parent::__construct($roomNumber, RoomType::Standard, 1, true, false, $price, "TV", "Air-Conditioner"); }
function __construct($roomNumber, $price) { parent::__construct($roomNumber, SingleRoom::BED_COUNT, $price, true, false, RoomType::STANDARD); $this->addExtras(Extra::TV); $this->addExtras(Extra::AIR_CONDITIONER); }
function __construct($roomNumber, $price) { parent::__construct(self::ROOM_TYPE, self::HAS_RESTROOM, self::HAS_BALCONY, self::BED_COUNT, $roomNumber, self::EXTRAS, $price); }
public function __construct($roomNumber, $price) { $roomInfo = new RoomInfo("Gold", true, true, 2, $roomNumber, "TV, air-conditioner, refrigerator, mini-bar, bathtub", $price); parent::__construct($roomInfo); }
public function __construct($roomNumber, $price) { $roomInfo = new RoomInfo("Standart", true, false, 1, $roomNumber, "TV, air-conditioner", $price); parent::__construct($roomInfo); }
function __construct($roomNumber, $price) { parent::__construct($roomNumber, RoomType::Gold, 2, true, true, $price, "TV", "Air-Conditioner", "Refrigerator", "Mini-bar", "Bathtub"); }
public function __construct($roomNumber, $price) { $roomInfo = new RoomInfo("Diamond", true, true, 4, $roomNumber, "TV, air-conditioner, refrigerator, kitchen box, mini-bar, bathtub, free Wi-fi", $price); parent::__construct($roomInfo); }
function __construct($roomNumber, $price) { parent::__construct($roomNumber, 'SINGLE_ROOM_BEDS', $price, true, false, RoomType::STANDARD); $this->addExtras(Extra::TV); $this->addExtras(Extra::AIR_CONDITIONER); }
function __construct($roomId, $price) { parent::__construct($roomId, 1, RoomType::STANDARD, true, false, $price); $this->setExtras(Extra::TV); $this->setExtras(Extra::AIR_CONDITIONER); }