|
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/book/tests/fakes/ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
<?php
class TestReservationItemView extends ReservationItemView
{
public $_RequiresCheckin = false;
/**
* @param null|string $id
* @param Date $startDate
* @param Date $endDate
* @param int $resourceId
* @param string|null $referenceNumber
*/
public function __construct($id, Date $startDate, Date $endDate, $resourceId = 1, $referenceNumber = "referencenumber")
{
parent::__construct();
$this->ReservationId = $id;
$this->StartDate = $startDate;
$this->EndDate = $endDate;
$this->ResourceId = $resourceId;
$this->Date = new DateRange($startDate, $endDate);
$this->RepeatType = RepeatType::None;
$this->ReferenceNumber = $referenceNumber;
$this->ScheduleId = 1;
}
public function WithSeriesId($seriesId)
{
$this->SeriesId = $seriesId;
return $this;
}
public function RequiresCheckin()
{
return $this->_RequiresCheckin;
}
}
class TestBlackoutItemView extends BlackoutItemView
{
public function __construct(
$instanceId,
Date $startDate,
Date $endDate,
$resourceId,
$seriesId = 1
)
{
parent::__construct($instanceId, $startDate, $endDate, $resourceId, null, null, null, null, null, null, null, $seriesId, null, null);
}
public function WithScheduleId($scheduleId)
{
$this->ScheduleId = $scheduleId;
return $this;
}
}