wip: insurance booking
This commit is contained in:
@@ -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