src/Entity/Articles.php line 10

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ArticlesRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassArticlesRepository::class)]
  7. class Articles
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  14.     private ?\DateTimeInterface $dateAjout null;
  15.     #[ORM\Column(length255)]
  16.     private ?string $titre null;
  17.     #[ORM\Column(length255)]
  18.     private ?string $ref null;
  19.     #[ORM\Column(typeTypes::TEXT)]
  20.     private ?string $description null;
  21.     #[ORM\Column]
  22.     private ?float $prixAchat null;
  23.     #[ORM\Column]
  24.     private ?float $marge null;
  25.     #[ORM\Column]
  26.     private ?float $prixHT null;
  27.     #[ORM\Column]
  28.     private ?float $prixTTC null;
  29.     #[ORM\Column]
  30.     private ?float $tva null;
  31.     #[ORM\Column]
  32.     private ?float $prixPromo null;
  33.     #[ORM\Column]
  34.     private ?float $prixPro null;
  35.     #[ORM\Column]
  36.     private ?float $prixProTTC null;
  37.     #[ORM\Column]
  38.     private ?float $minQte null;
  39.     #[ORM\Column(length255)]
  40.     private ?string $unite null;
  41.     #[ORM\Column(length255)]
  42.     private ?string $imgPrincipale null;
  43.     #[ORM\Column]
  44.     private ?int $idSousCategorie null;
  45.     #[ORM\Column]
  46.     private ?int $etat null;
  47.     #[ORM\Column]
  48.     private ?int $ordre null;
  49.     public function getId(): ?int
  50.     {
  51.         return $this->id;
  52.     }
  53.     public function getDateAjout(): ?\DateTimeInterface
  54.     {
  55.         return $this->dateAjout;
  56.     }
  57.     public function setDateAjout(\DateTimeInterface $dateAjout): static
  58.     {
  59.         $this->dateAjout $dateAjout;
  60.         return $this;
  61.     }
  62.     public function getTitre(): ?string
  63.     {
  64.         return $this->titre;
  65.     }
  66.     public function setTitre(string $titre): static
  67.     {
  68.         $this->titre $titre;
  69.         return $this;
  70.     }
  71.     public function getRef(): ?string
  72.     {
  73.         return $this->ref;
  74.     }
  75.     public function setRef(string $ref): static
  76.     {
  77.         $this->ref $ref;
  78.         return $this;
  79.     }
  80.     public function getDescription(): ?string
  81.     {
  82.         return $this->description;
  83.     }
  84.     public function setDescription(string $description): static
  85.     {
  86.         $this->description $description;
  87.         return $this;
  88.     }
  89.     public function getPrixAchat(): ?float
  90.     {
  91.         return $this->prixAchat;
  92.     }
  93.     public function setPrixAchat(float $prixAchat): static
  94.     {
  95.         $this->prixAchat $prixAchat;
  96.         return $this;
  97.     }
  98.     public function getMarge(): ?float
  99.     {
  100.         return $this->marge;
  101.     }
  102.     public function setMarge(float $marge): static
  103.     {
  104.         $this->marge $marge;
  105.         return $this;
  106.     }
  107.     public function getPrixHT(): ?float
  108.     {
  109.         return $this->prixHT;
  110.     }
  111.     public function setPrixHT(float $prixHT): static
  112.     {
  113.         $this->prixHT $prixHT;
  114.         return $this;
  115.     }
  116.     public function getPrixTTC(): ?float
  117.     {
  118.         return $this->prixTTC;
  119.     }
  120.     public function setPrixTTC(float $prixTTC): static
  121.     {
  122.         $this->prixTTC $prixTTC;
  123.         return $this;
  124.     }
  125.     public function getTva(): ?float
  126.     {
  127.         return $this->tva;
  128.     }
  129.     public function setTva(float $tva): static
  130.     {
  131.         $this->tva $tva;
  132.         return $this;
  133.     }
  134.     public function getPrixPromo(): ?float
  135.     {
  136.         return $this->prixPromo;
  137.     }
  138.     public function setPrixPromo(float $prixPromo): static
  139.     {
  140.         $this->prixPromo $prixPromo;
  141.         return $this;
  142.     }
  143.     public function getPrixPro(): ?float
  144.     {
  145.         return $this->prixPro;
  146.     }
  147.     public function setPrixPro(float $prixPro): static
  148.     {
  149.         $this->prixPro $prixPro;
  150.         return $this;
  151.     }
  152.     public function getPrixProTTC(): ?float
  153.     {
  154.         return $this->prixProTTC;
  155.     }
  156.     public function setPrixProTTC(float $prixProTTC): static
  157.     {
  158.         $this->prixProTTC $prixProTTC;
  159.         return $this;
  160.     }
  161.     public function getMinQte(): ?float
  162.     {
  163.         return $this->minQte;
  164.     }
  165.     public function setMinQte(float $minQte): static
  166.     {
  167.         $this->minQte $minQte;
  168.         return $this;
  169.     }
  170.     public function getUnite(): ?string
  171.     {
  172.         return $this->unite;
  173.     }
  174.     public function setUnite(string $unite): static
  175.     {
  176.         $this->unite $unite;
  177.         return $this;
  178.     }
  179.     public function getImgPrincipale(): ?string
  180.     {
  181.         return $this->imgPrincipale;
  182.     }
  183.     public function setImgPrincipale(string $imgPrincipale): static
  184.     {
  185.         $this->imgPrincipale $imgPrincipale;
  186.         return $this;
  187.     }
  188.     public function getIdSousCategorie(): ?int
  189.     {
  190.         return $this->idSousCategorie;
  191.     }
  192.     public function setIdSousCategorie(int $idSousCategorie): static
  193.     {
  194.         $this->idSousCategorie $idSousCategorie;
  195.         return $this;
  196.     }
  197.     public function getEtat(): ?int
  198.     {
  199.         return $this->etat;
  200.     }
  201.     public function setEtat(int $etat): static
  202.     {
  203.         $this->etat $etat;
  204.         return $this;
  205.     }
  206.     public function getOrdre(): ?int
  207.     {
  208.         return $this->ordre;
  209.     }
  210.     public function setOrdre(int $ordre): static
  211.     {
  212.         $this->ordre $ordre;
  213.         return $this;
  214.     }
  215. }