src/Entity/Modeles.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ModelesRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassModelesRepository::class)]
  7. class Modeles
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column()]
  12.     private ?int $id null;
  13.     #[ORM\Column(length255)]
  14.     private ?string $libelle null;
  15.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  16.     private ?string $description null;
  17.     #[ORM\Column]
  18.     private ?bool $isActif null;
  19.     #[ORM\Column(length255)]
  20.     private ?string $code null;
  21.     #[ORM\Column(length255)]
  22.     private ?string $slug null;
  23.     #[ORM\ManyToOne(inversedBy'modeles')]
  24.     #[ORM\JoinColumn(nullablefalse)]
  25.     private ?Marques $marque null;
  26.     public function getId(): ?int
  27.     {
  28.         return $this->id;
  29.     }
  30.     public function getLibelle(): ?string
  31.     {
  32.         return $this->libelle;
  33.     }
  34.     public function setLibelle(string $libelle): self
  35.     {
  36.         $this->libelle $libelle;
  37.         return $this;
  38.     }
  39.     public function getDescription(): ?string
  40.     {
  41.         return $this->description;
  42.     }
  43.     public function setDescription(?string $description): self
  44.     {
  45.         $this->description $description;
  46.         return $this;
  47.     }
  48.     public function isIsActif(): ?bool
  49.     {
  50.         return $this->isActif;
  51.     }
  52.     public function setIsActif(bool $isActif): self
  53.     {
  54.         $this->isActif $isActif;
  55.         return $this;
  56.     }
  57.     public function getCode(): ?string
  58.     {
  59.         return $this->code;
  60.     }
  61.     public function setCode(string $code): self
  62.     {
  63.         $this->code $code;
  64.         return $this;
  65.     }
  66.     public function getSlug(): ?string
  67.     {
  68.         return $this->slug;
  69.     }
  70.     public function setSlug(string $slug): self
  71.     {
  72.         $this->slug $slug;
  73.         return $this;
  74.     }
  75.     public function getMarque(): ?Marques
  76.     {
  77.         return $this->marque;
  78.     }
  79.     public function setMarque(?Marques $marque): self
  80.     {
  81.         $this->marque $marque;
  82.         return $this;
  83.     }
  84. }