Refactor configurator defaults config, add more defaults
This commit is contained in:
@@ -151,6 +151,15 @@ class Inquiry extends AbstractValueObject
|
||||
if ($offer->getLocation()->getConfiguratorDistance()) {
|
||||
$inquiry->setDistance($offer->getLocation()->getConfiguratorDistance());
|
||||
}
|
||||
if ($offer->getConfiguratorBudget()) {
|
||||
$inquiry->setBudget($offer->getConfiguratorBudget());
|
||||
}
|
||||
if ($offer->getConfiguratorPax()) {
|
||||
$inquiry->setPax($offer->getConfiguratorPax());
|
||||
}
|
||||
if ($offer->getConfiguratorPeriod()) {
|
||||
$inquiry->setPeriod($offer->getConfiguratorPeriod());
|
||||
}
|
||||
$activities = [];
|
||||
/** @var \EP\EpEvents\Domain\Model\Activity $activity */
|
||||
foreach ($offer->getActivities() as $activity)
|
||||
|
||||
@@ -157,6 +157,27 @@ class Offer extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity
|
||||
*/
|
||||
protected $configuratorType = 0;
|
||||
|
||||
/**
|
||||
* configuratorBudget
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
protected $configuratorBudget = 0;
|
||||
|
||||
/**
|
||||
* configuratorPax
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
protected $configuratorPax = 0;
|
||||
|
||||
/**
|
||||
* configuratorPeriod
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
protected $configuratorPeriod = 0;
|
||||
|
||||
/**
|
||||
* contact
|
||||
*
|
||||
@@ -626,6 +647,54 @@ class Offer extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity
|
||||
$this->configuratorType = $configuratorType;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getConfiguratorBudget()
|
||||
{
|
||||
return $this->configuratorBudget;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param int $configuratorBudget
|
||||
*/
|
||||
public function setConfiguratorBudget($configuratorBudget)
|
||||
{
|
||||
$this->configuratorBudget = $configuratorBudget;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getConfiguratorPax()
|
||||
{
|
||||
return $this->configuratorPax;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param int $configuratorPax
|
||||
*/
|
||||
public function setConfiguratorPax($configuratorPax)
|
||||
{
|
||||
$this->configuratorPax = $configuratorPax;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getConfiguratorPeriod()
|
||||
{
|
||||
return $this->configuratorPeriod;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param int $configuratorPeriod
|
||||
*/
|
||||
public function setConfiguratorPeriod($configuratorPeriod)
|
||||
{
|
||||
$this->configuratorPeriod = $configuratorPeriod;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user