Prepopulate configurator form
This commit is contained in:
1 parent
340261220c
commit
6160703361
5 files changed
+40
-8
No files matched your search
@@ -185,8 +185,12 @@ class Inquiry extends AbstractValueObject
|
||||
public static function fromArguments($travelType = 0, $locationType = 0)
|
||||
{
|
||||
$inquiry = new self;
|
||||
$inquiry->setTravelType((string) $travelType);
|
||||
$inquiry->setLocationType((string) $locationType);
|
||||
if ($travelType) {
|
||||
$inquiry->setTravelType((string) $travelType);
|
||||
}
|
||||
if ($locationType) {
|
||||
$inquiry->setLocationType((string) $locationType);
|
||||
}
|
||||
return $inquiry;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user