src/Entity/Preference.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\PreferenceRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassPreferenceRepository::class)]
  6. class Preference
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue(strategy'AUTO')]
  10.     #[ORM\Column(type'integer'uniquetrue)]
  11.     private $id;
  12.     #[ORM\Column(type'string'length100)]
  13.     private $name;
  14.     public function getId(): ?int
  15.     {
  16.         return $this->id;
  17.     }
  18.     public function getName(): ?string
  19.     {
  20.         return $this->name;
  21.     }
  22.     public function setName(string $name): self
  23.     {
  24.         $this->name $name;
  25.         return $this;
  26.     }
  27. }