git-svn-id: http://78.47.251.156/svn/dev/sterntours-3@3283 f459cee4-fb09-11de-96c3-f9c5f16c3c76

This commit is contained in:
uli 2016-12-17 10:11:28 +00:00
parent 75a065758f
commit 7422f06e90
261 changed files with 83347 additions and 0 deletions

View file

@ -0,0 +1,117 @@
<?php
/**
* @author Ulrich Hecht <ulrich.hecht@hecht-software.de>
* @date 12/16/2016
*/
namespace AppBundle\Entity;
use Symfony\Component\Validator\Constraints as Assert;
use Symfony\Component\Validator\Context\ExecutionContextInterface;
class BookingRequest
{
/**
* @var TravelDeparturePoint $departure
*/
private $departure;
private $travelerCount;
/**
* @var TravelInsurance $insurance
*/
private $insurance;
private $comfort;
private $travelOptions;
/**
* @return TravelDeparturePoint
*/
public function getDeparture(): TravelDeparturePoint
{
return $this->departure;
}
/**
* @param TravelDeparturePoint $departure
*/
public function setDeparture(TravelDeparturePoint $departure)
{
$this->departure = $departure;
}
/**
* @return mixed
*/
public function getTravelerCount()
{
return $this->travelerCount;
}
/**
* @param mixed $travelerCount
*/
public function setTravelerCount($travelerCount)
{
$this->travelerCount = $travelerCount;
}
/**
* @return TravelInsurance
*/
public function getInsurance(): TravelInsurance
{
return $this->insurance;
}
/**
* @param TravelInsurance $insurance
*/
public function setInsurance(TravelInsurance $insurance)
{
$this->insurance = $insurance;
}
/**
* @return mixed
*/
public function getComfort()
{
return $this->comfort;
}
/**
* @param mixed $comfort
*/
public function setComfort($comfort)
{
$this->comfort = $comfort;
}
/**
* @return mixed
*/
public function getTravelOptions()
{
return $this->travelOptions;
}
/**
* @param mixed $travelOptions
*/
public function setTravelOptions($travelOptions)
{
$this->travelOptions = $travelOptions;
}
/**
* @Assert\Callback
*/
public function validate(ExecutionContextInterface $context, $payload)
{
//$context->
}
}