git-svn-id: http://78.47.251.156/svn/dev/sterntours-3@3356 f459cee4-fb09-11de-96c3-f9c5f16c3c76
This commit is contained in:
parent
8240ce87f9
commit
3bb0bb53a7
11 changed files with 276 additions and 330 deletions
|
|
@ -17,12 +17,12 @@ class CalendarDayState
|
|||
private $day;
|
||||
|
||||
/**
|
||||
* @var FewoPrice
|
||||
* @var FewoPrice|null
|
||||
*/
|
||||
private $price; // der preis / die saison
|
||||
|
||||
/**
|
||||
* @var FewoReservation
|
||||
* @var FewoReservation|null
|
||||
*/
|
||||
private $reservation; // die reservierung //todo wenns vorteile bringt, ne zweite speichern
|
||||
|
||||
|
|
@ -49,7 +49,12 @@ class CalendarDayState
|
|||
/**
|
||||
* @var bool
|
||||
*/
|
||||
private $isReservationEnd; // ist es das ende einer reservierung?
|
||||
private $isReservationEnd;
|
||||
|
||||
/**
|
||||
* @var \DateTime|null
|
||||
*/
|
||||
private $date = null;
|
||||
|
||||
/**
|
||||
* @return int
|
||||
|
|
@ -68,33 +73,33 @@ class CalendarDayState
|
|||
}
|
||||
|
||||
/**
|
||||
* @return FewoPrice
|
||||
* @return FewoPrice|null
|
||||
*/
|
||||
public function getPrice(): FewoPrice
|
||||
public function getPrice()
|
||||
{
|
||||
return $this->price;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param FewoPrice $price
|
||||
* @param FewoPrice|null $price
|
||||
*/
|
||||
public function setPrice(FewoPrice $price)
|
||||
public function setPrice($price)
|
||||
{
|
||||
$this->price = $price;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return FewoReservation
|
||||
* @return FewoReservation|null
|
||||
*/
|
||||
public function getReservation(): FewoReservation
|
||||
public function getReservation()
|
||||
{
|
||||
return $this->reservation;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param FewoReservation $reservation
|
||||
* @param FewoReservation|null $reservation
|
||||
*/
|
||||
public function setReservation(FewoReservation $reservation)
|
||||
public function setReservation($reservation)
|
||||
{
|
||||
$this->reservation = $reservation;
|
||||
}
|
||||
|
|
@ -179,6 +184,20 @@ class CalendarDayState
|
|||
$this->isReservationEnd = $isReservationEnd;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \DateTime|null
|
||||
*/
|
||||
public function getDate()
|
||||
{
|
||||
return $this->date;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param \DateTime|null $date
|
||||
*/
|
||||
public function setDate($date)
|
||||
{
|
||||
$this->date = $date;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue