src/Entity/CuToken.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\CuTokenRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. use Doctrine\Common\Collections\ArrayCollection;
  7. use Doctrine\Common\Collections\Collection;
  8. #[ORM\Entity(repositoryClassCuTokenRepository::class)]
  9. class CuToken
  10. {
  11.     #[ORM\Id]
  12.     #[ORM\Column(type'string')]
  13.     private $state;
  14.     #[ORM\Column(type'text'options: ['columnDefinition' => 'LONGTEXT'])]
  15.     private $token;
  16.     public function getState(): ?string
  17.     {
  18.         return $this->state;
  19.     }
  20.     public function setState(?string $state): self
  21.     {
  22.         $this->state $state;
  23.         return $this;
  24.     }
  25.     public function getToken(): ?string
  26.     {
  27.         return $this->token;
  28.     }
  29.     public function setToken(?string $token): self
  30.     {
  31.         $this->token $token;
  32.         return $this;
  33.     }
  34.     public function __toString(){
  35.         return $this->getState();
  36.     }
  37. }