new Link( fromProperty: 'eventId', identifiers: ['eventId'] ) ] ) ], provider: EventFormProvider::class, )] class EventForm { /** * Slug du formulaire */ #[ApiProperty(identifier: true)] private ?string $slug = null; /** * Id de l'Event auquel le formulaire est associƩ * @var int | null */ private ?int $eventId = null; /** * Titre du formulaire * @var string|null */ private ?string $title = null; /** * Url du formulaire */ private ?string $widgetUrl = null; public function getSlug(): ?string { return $this->slug; } public function setSlug(?string $slug): self { $this->slug = $slug; return $this; } public function getEventId(): ?int { return $this->eventId; } public function setEventId(?int $eventId): self { $this->eventId = $eventId; return $this; } public function getTitle(): ?string { return $this->title; } public function setTitle(?string $title): self { $this->title = $title; return $this; } public function getWidgetUrl(): ?string { return $this->widgetUrl; } public function setWidgetUrl(?string $widgetUrl): self { $this->widgetUrl = $widgetUrl; return $this; } }