src/Entity/Models.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ModelsRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity]
  6. #[ORM\Table(name"models")]
  7. class Models
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column(type"integer")]
  12.     private ?int $id null;
  13.     #[ORM\Column(type"string"length100)]
  14.     private string $codemodel;
  15.     #[ORM\Column(type"string"length100)]
  16.     private string $lienmodel;
  17.     #[ORM\Column(type"string"length255)]
  18.     private string $imgmodel;
  19.     #[ORM\Column(type"string"length20)]
  20.     private string $statutmodel;
  21.     #[ORM\Column(type"integer"options: ["unsigned" => true])]
  22.     private int $typesitesid;
  23.     #[ORM\Column(type"integer"options: ["unsigned" => true])]
  24.     private int $usersid;
  25.     #[ORM\Column(type"string"length100)]
  26.     private string $keysites;
  27.     #[ORM\Column(type"datetime")]
  28.     private \DateTimeInterface $createdat;
  29.     #[ORM\Column(type"datetime"nullabletrue)]
  30.     private ?\DateTimeInterface $updatedat null;
  31.     // --- Getters et Setters ---
  32.     public function getId(): ?int{return $this->id;}
  33.     public function getCodemodel(): string{return $this->codemodel;}
  34.     public function setCodemodel(string $codemodel): self{$this->codemodel $codemodel;return $this;}
  35.     public function getLienmodel(): string{return $this->lienmodel;}
  36.     public function setLienmodel(string $lienmodel): self{$this->lienmodel $lienmodel;return $this;}
  37.     public function getImgmodel(): string {return $this->imgmodel; }
  38.     public function setImgmodel(string $imgmodel): self{$this->imgmodel $imgmodel;return $this;}
  39.     public function getStatutmodel(): string{return $this->statutmodel;}
  40.     public function setStatutmodel(string $statutmodel): self{$this->statutmodel $statutmodel;return $this;}
  41.     public function getTypesitesid(): int{return $this->typesitesid;}
  42.     public function setTypesitesid(int $typesitesid): self{$this->typesitesid $typesitesid;return $this;}
  43.     public function getUsersid(): int{ return $this->usersid;}
  44.     public function setUsersid(int $usersid): self{$this->usersid $usersid;return $this;}
  45.     public function getKeysites(): string{return $this->keysites;}
  46.     public function setKeysites(string $keysites): self{$this->keysites $keysites;return $this;}
  47.     public function getCreatedat(): \DateTimeInterface {return $this->createdat; }
  48.     public function setCreatedat(\DateTimeInterface $createdat): self{$this->createdat $createdat;return $this;}
  49.     public function getUpdatedat(): ?\DateTimeInterface{ return $this->updatedat;}
  50.     public function setUpdatedat(?\DateTimeInterface $updatedat): self{$this->updatedat $updatedat;return $this;}
  51. }