Skip to content
Snippets Groups Projects
TokenResponse.php 323 B
Newer Older
i.vasilenko@iq-adv.ru's avatar
i.vasilenko@iq-adv.ru committed
<?php

namespace App\Service\Response\Classes;

use Symfony\Component\Serializer\Annotation\Groups;

class TokenResponse extends Response
{
    /**
     * @var array
     */
    #[Groups(["data"])]
    public array $data;

    public function setToken(string $token)
    {
        $this->data = ['token' => $token];
    }
}