<?php
namespace App\Entity;
use App\Repository\ModelsRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity]
#[ORM\Table(name: "models")]
class Models
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: "integer")]
private ?int $id = null;
#[ORM\Column(type: "string", length: 100)]
private string $codemodel;
#[ORM\Column(type: "string", length: 100)]
private string $lienmodel;
#[ORM\Column(type: "string", length: 255)]
private string $imgmodel;
#[ORM\Column(type: "string", length: 20)]
private string $statutmodel;
#[ORM\Column(type: "integer", options: ["unsigned" => true])]
private int $typesitesid;
#[ORM\Column(type: "integer", options: ["unsigned" => true])]
private int $usersid;
#[ORM\Column(type: "string", length: 100)]
private string $keysites;
#[ORM\Column(type: "datetime")]
private \DateTimeInterface $createdat;
#[ORM\Column(type: "datetime", nullable: true)]
private ?\DateTimeInterface $updatedat = null;
// --- Getters et Setters ---
public function getId(): ?int{return $this->id;}
public function getCodemodel(): string{return $this->codemodel;}
public function setCodemodel(string $codemodel): self{$this->codemodel = $codemodel;return $this;}
public function getLienmodel(): string{return $this->lienmodel;}
public function setLienmodel(string $lienmodel): self{$this->lienmodel = $lienmodel;return $this;}
public function getImgmodel(): string {return $this->imgmodel; }
public function setImgmodel(string $imgmodel): self{$this->imgmodel = $imgmodel;return $this;}
public function getStatutmodel(): string{return $this->statutmodel;}
public function setStatutmodel(string $statutmodel): self{$this->statutmodel = $statutmodel;return $this;}
public function getTypesitesid(): int{return $this->typesitesid;}
public function setTypesitesid(int $typesitesid): self{$this->typesitesid = $typesitesid;return $this;}
public function getUsersid(): int{ return $this->usersid;}
public function setUsersid(int $usersid): self{$this->usersid = $usersid;return $this;}
public function getKeysites(): string{return $this->keysites;}
public function setKeysites(string $keysites): self{$this->keysites = $keysites;return $this;}
public function getCreatedat(): \DateTimeInterface {return $this->createdat; }
public function setCreatedat(\DateTimeInterface $createdat): self{$this->createdat = $createdat;return $this;}
public function getUpdatedat(): ?\DateTimeInterface{ return $this->updatedat;}
public function setUpdatedat(?\DateTimeInterface $updatedat): self{$this->updatedat = $updatedat;return $this;}
}