src/Entity/Model.php line 11

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ModelRepository;
  4. use DateTimeInterface;
  5. use Doctrine\DBAL\Types\Types;
  6. use Doctrine\ORM\Mapping as ORM;
  7. #[ORM\Entity(repositoryClassModelRepository::class)]
  8. class Model
  9. {
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column]
  13.     private ?int $id null;
  14.     #[ORM\Column(length255)]
  15.     private ?string $name null;
  16.     #[ORM\Column]
  17.     private ?bool $isSupported null;
  18.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  19.     private ?DateTimeInterface $supportedAt null;
  20.     public function getId(): ?int
  21.     {
  22.         return $this->id;
  23.     }
  24.     public function getName(): ?string
  25.     {
  26.         return $this->name;
  27.     }
  28.     public function setName(string $name): self
  29.     {
  30.         $this->name $name;
  31.         return $this;
  32.     }
  33.     public function isIsSupported(): ?bool
  34.     {
  35.         return $this->isSupported;
  36.     }
  37.     public function setIsSupported(bool $isSupported): self
  38.     {
  39.         $this->isSupported $isSupported;
  40.         return $this;
  41.     }
  42.     public function getSupportedAt(): ?DateTimeInterface
  43.     {
  44.         return $this->supportedAt;
  45.     }
  46.     public function setSupportedAt(?DateTimeInterface $supportedAt): self
  47.     {
  48.         $this->supportedAt $supportedAt;
  49.         return $this;
  50.     }
  51.     public function __toString(): string
  52.     {
  53.         return $this->name;
  54.     }
  55. }