feat: parse travel guide per date

This commit is contained in:
Björn Fromme
2025-05-14 21:51:44 +02:00
parent a588a7e6e4
commit 1e5401ea25
5 changed files with 31 additions and 10 deletions
+5
View File
@@ -2,8 +2,13 @@
namespace App\BusProNet\Model;
use Symfony\Component\Serializer\Attribute\Groups;
class Guide
{
#[Groups(['api:single'])]
public ?string $name = null;
#[Groups(['api:single'])]
public ?string $phone = null;
}
+3
View File
@@ -73,6 +73,9 @@ class Travel
#[Groups(['api:single'])]
public bool $participantCountMutable = true;
#[Groups(['api:single'])]
public ?Guide $guide = null;
public function getAdditionalServicesByGroup(mixed $group, bool $availableOnly = true): array
{
$group = (array) $group;