src/Entity/Locales.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\LocalesRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassLocalesRepository::class)]
  6. class Locales
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column]
  11.     private ?int $id null;
  12.     #[ORM\Column(length10nullabletrue)]
  13.     private ?string $key null;
  14.     #[ORM\Column(length255nullabletrue)]
  15.     private ?string $name null;
  16.     #[ORM\Column(length255nullabletrue)]
  17.     private ?string $icon null;
  18.     public function getId(): ?int
  19.     {
  20.         return $this->id;
  21.     }
  22.     public function getKey(): ?string
  23.     {
  24.         return $this->key;
  25.     }
  26.     public function setKey(?string $key): self
  27.     {
  28.         $this->key $key;
  29.         return $this;
  30.     }
  31.     public function getName(): ?string
  32.     {
  33.         return $this->name;
  34.     }
  35.     public function setName(?string $name): self
  36.     {
  37.         $this->name $name;
  38.         return $this;
  39.     }
  40.     public function getIcon(): ?string
  41.     {
  42.         return $this->icon;
  43.     }
  44.     public function setIcon(?string $icon): self
  45.     {
  46.         $this->icon $icon;
  47.         return $this;
  48.     }
  49. }