src/Entity/Commande.php line 12

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\CommandeRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\DBAL\Types\Types;
  7. use Doctrine\ORM\Mapping as ORM;
  8. #[ORM\Entity(repositoryClassCommandeRepository::class)]
  9. class Commande
  10. {
  11.     #[ORM\Id]
  12.     #[ORM\GeneratedValue]
  13.     #[ORM\Column]
  14.     private ?int $id null;
  15.     #[ORM\Column]
  16.     private ?int $numero null;
  17.     #[ORM\Column]
  18.     private ?int $numero400 null;
  19.     /*#[ORM\ManyToOne(inversedBy: 'commandepar')]
  20.     private ?User $commandepar = null;*/
  21.     #[ORM\Column]
  22.     private ?float $montant null;
  23.     /*#[ORM\ManyToOne(inversedBy: 'commandes')]
  24.     private ?Filieres $livrea = null;*/
  25.     #[ORM\Column(length1nullabletrue)]
  26.     private ?string $valide null;
  27.     #[ORM\Column(typeTypes::DATE_MUTABLEnullabletrue)]
  28.     private ?\DateTimeInterface $date_validation null;
  29.     #[ORM\Column(length20nullabletrue)]
  30.     private ?string $reference null;
  31.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  32.     private ?string $commentaires null;
  33.     #[ORM\Column(nullabletrue)]
  34.     private ?int $nombretotalarticles null;
  35.     #[ORM\Column(nullabletrue)]
  36.     private ?int $nombrelignes null;
  37.     #[ORM\ManyToOne(inversedBy'commandea')]
  38.     private ?Filieres $filiere null;
  39.     #[ORM\Column(nullabletrue)]
  40.     private ?int $code_client_livre null;
  41.     public function __construct()
  42.     {
  43.     }
  44.     public function getId(): ?int
  45.     {
  46.         return $this->id;
  47.     }
  48.     public function getNumero(): ?int
  49.     {
  50.         return $this->numero;
  51.     }
  52.     public function setNumero(int $numero): self
  53.     {
  54.         $this->numero $numero;
  55.         return $this;
  56.     }
  57.     public function getNumero400(): ?int
  58.     {
  59.         return $this->numero400;
  60.     }
  61.     public function setNumero400(int $numero400): self
  62.     {
  63.         $this->numero400 $numero400;
  64.         return $this;
  65.     }
  66.     /*public function getCommandepar(): ?User
  67.     {
  68.         return $this->commandepar;
  69.     }
  70.     public function setCommandepar(?User $commandepar): self
  71.     {
  72.         $this->commandepar = $commandepar;
  73.         return $this;
  74.     }
  75.     public function getLivrea(): ?Filieres
  76.     {
  77.         return $this->livrea;
  78.     }
  79.     public function setLivrea(?Filieres $livrea): self
  80.     {
  81.         $this->livrea = $livrea;
  82.         return $this;
  83.     }*/
  84.     public function getMontant(): ?float
  85.     {
  86.         return $this->montant;
  87.     }
  88.     public function setMontant(float $montant): self
  89.     {
  90.         $this->montant $montant;
  91.         return $this;
  92.     }
  93.     public function getValide(): ?string
  94.     {
  95.         return $this->valide;
  96.     }
  97.     public function setValide(?string $valide): self
  98.     {
  99.         $this->valide $valide;
  100.         return $this;
  101.     }
  102.     public function getDateValidation(): ?\DateTimeInterface
  103.     {
  104.         return $this->date_validation;
  105.     }
  106.     public function setDateValidation(?\DateTimeInterface $date_validation): self
  107.     {
  108.         $this->date_validation $date_validation;
  109.         return $this;
  110.     }
  111.     public function getReference(): ?string
  112.     {
  113.         return $this->reference;
  114.     }
  115.     public function setReference(?string $reference): self
  116.     {
  117.         $this->reference $reference;
  118.         return $this;
  119.     }
  120.     public function getCommentaires(): ?string
  121.     {
  122.         return $this->commentaires;
  123.     }
  124.     public function setCommentaires(?string $commentaires): self
  125.     {
  126.         $this->commentaires $commentaires;
  127.         return $this;
  128.     }
  129.     public function getNombretotalarticles(): ?int
  130.     {
  131.         return $this->nombretotalarticles;
  132.     }
  133.     public function setNombretotalarticles(?int $nombretotalarticles): self
  134.     {
  135.         $this->nombretotalarticles $nombretotalarticles;
  136.         return $this;
  137.     }
  138.     public function getNombrelignes(): ?int
  139.     {
  140.         return $this->nombrelignes;
  141.     }
  142.     public function setNombrelignes(?int $nombrelignes): self
  143.     {
  144.         $this->nombrelignes $nombrelignes;
  145.         return $this;
  146.     }
  147.     public function getFiliere(): ?Filieres
  148.     {
  149.         return $this->filiere;
  150.     }
  151.     public function setFiliere(?Filieres $filiere): self
  152.     {
  153.         $this->filiere $filiere;
  154.         return $this;
  155.     }
  156.     public function getCodeClientLivre(): ?int
  157.     {
  158.         return $this->code_client_livre;
  159.     }
  160.     public function setCodeClientLivre(?int $code_client_livre): self
  161.     {
  162.         $this->code_client_livre $code_client_livre;
  163.         return $this;
  164.     }
  165. }