|
Server IP : 10.111.20.6 / Your IP : 216.73.217.121 Web Server : Apache System : Linux webm006.cluster111.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : edizioni ( 7252) PHP Version : 8.3.23 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0705) : /home/edizioni/stampaeweb/../wordpress/../extonymask/backup/../book/Domain/ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
<?php
class AccessoryReservation
{
/**
* @var string
*/
private $referenceNumber;
/**
* @var int
*/
private $accessoryId;
/**
* @var \Date
*/
private $startDate;
/**
* @var \Date
*/
private $endDate;
/**
* @var int
*/
private $quantityReserved;
/**
* @param string $referenceNumber
* @param Date $startDate
* @param Date $endDate
* @param int $accessoryId
* @param int $quantityReserved
*/
public function __construct($referenceNumber, $startDate, $endDate, $accessoryId, $quantityReserved)
{
$this->referenceNumber = $referenceNumber;
$this->accessoryId = $accessoryId;
$this->startDate = $startDate;
$this->endDate = $endDate;
$this->quantityReserved = $quantityReserved;
}
/**
* @return string
*/
public function GetReferenceNumber()
{
return $this->referenceNumber;
}
/**
* @return Date
*/
public function GetStartDate()
{
return $this->startDate;
}
/**
* @return Date
*/
public function GetEndDate()
{
return $this->endDate;
}
/**
* @return int
*/
public function GetAccessoryId()
{
return $this->accessoryId;
}
/**
* @return int
*/
public function QuantityReserved()
{
return $this->quantityReserved;
}
/**
* @return DateRange
*/
public function GetDuration()
{
return new DateRange($this->GetStartDate(), $this->GetEndDate());
}
}