wip: booking process

This commit is contained in:
Björn Fromme committed 2025-07-14 17:15:15 +02:00
1 parent a55e30e12d
commit bef18971c3
45 files changed
+688 -270

No files matched your search

+17
View File
@@ -1,7 +1,16 @@
<?php
declare(strict_types=1);
namespace App\BusProNet\Model;
/**
* Represents service availability with status and pricing information.
*
* This class handles availability data including service identification,
* status, available quantity, and pricing. It implements JsonSerializable
* for API response formatting.
*/
class Availability implements \JsonSerializable
{
public ?int $serviceId = null;
@@ -9,6 +18,14 @@ class Availability implements \JsonSerializable
public ?int $available = null;
public ?float $price = null;
/**
* Serializes the availability data to JSON format.
*
* Converts the availability object to an array structure suitable
* for JSON serialization in API responses.
*
* @return array<string, mixed> The serialized availability data
*/
public function jsonSerialize(): array
{
return [