wip: insurance booking
This commit is contained in:
1 parent
0809f07d46
commit
90ae78262a
19 files changed
+807
-128
No files matched your search
@@ -91,4 +91,23 @@ class Insurance
|
||||
*/
|
||||
#[Groups(['api:single', 'api:list'])]
|
||||
public array $containedInsuranceIds = [];
|
||||
|
||||
public function __toString(): string
|
||||
{
|
||||
return (string) $this->id;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the subType, with virtual 'PKG' subType for insurance packages.
|
||||
*
|
||||
* @return string|null The subType (RRV, PAK, OHN, PKG) or null
|
||||
*/
|
||||
public function getSubType(): ?string
|
||||
{
|
||||
if (true === $this->package) {
|
||||
return 'PKG'; // Virtual subType for all insurance packages
|
||||
}
|
||||
|
||||
return $this->subType;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user