<?php namespace App\Service\Response\Classes;
use Symfony\Component\DependencyInjection\Attribute\AsAlias;
use Symfony\Component\Serializer\Annotation\Groups;
#[AsAlias(id: 'response.token', public: true)]
class TokenResponse extends Response { /** * @var array */ #[Groups(["data"])] public array $data; public function setToken(string $token) { $this->data = ['token' => $token]; } }