src/Entity/Bondesortie.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\BondesortieRepository;
  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(repositoryClassBondesortieRepository::class)]
  9. class Bondesortie
  10. {
  11.     #[ORM\Id]
  12.     #[ORM\GeneratedValue]
  13.     #[ORM\Column]
  14.     private ?int $id null;
  15.     #[ORM\Column(length255nullabletrue)]
  16.     private ?string $nomprenom null;
  17.     #[ORM\Column(length255nullabletrue)]
  18.     private ?string $adresse null;
  19.     #[ORM\Column(length255nullabletrue)]
  20.     private ?string $telephone null;
  21.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  22.     private ?\DateTimeInterface $datecreation null;
  23.     #[ORM\Column(length255nullabletrue)]
  24.     private ?string $numbs null;
  25.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  26.     private ?\DateTimeInterface $date null;
  27.     #[ORM\Column(length255nullabletrue)]
  28.     private ?string $totaleqte null;
  29.     #[ORM\Column(length255nullabletrue)]
  30.     private ?string $totaleht null;
  31.     #[ORM\Column(length255nullabletrue)]
  32.     private ?string $totaltva null;
  33.     #[ORM\Column(length255nullabletrue)]
  34.     private ?string $totalttc null;
  35.     #[ORM\OneToMany(mappedBy'bondesorte'targetEntityLignebondesortie::class, cascade: ["remove"])]
  36.     private Collection $lignebondesorties;
  37.     #[ORM\ManyToOne(inversedBy'bondesorties')]
  38.     private ?Fournisseur $vendeur null;
  39.     #[ORM\ManyToOne(inversedBy'bondesorties')]
  40.     private ?Client $client null;
  41.     public function __construct()
  42.     {
  43.         $this->lignebondesorties = new ArrayCollection();
  44.     }
  45.     public function getId(): ?int
  46.     {
  47.         return $this->id;
  48.     }
  49.     public function getNomprenom(): ?string
  50.     {
  51.         return $this->nomprenom;
  52.     }
  53.     public function setNomprenom(?string $nomprenom): self
  54.     {
  55.         $this->nomprenom $nomprenom;
  56.         return $this;
  57.     }
  58.     public function getAdresse(): ?string
  59.     {
  60.         return $this->adresse;
  61.     }
  62.     public function setAdresse(?string $adresse): self
  63.     {
  64.         $this->adresse $adresse;
  65.         return $this;
  66.     }
  67.     public function getTelephone(): ?string
  68.     {
  69.         return $this->telephone;
  70.     }
  71.     public function setTelephone(?string $telephone): self
  72.     {
  73.         $this->telephone $telephone;
  74.         return $this;
  75.     }
  76.     public function getDatecreation(): ?\DateTimeInterface
  77.     {
  78.         return $this->datecreation;
  79.     }
  80.     public function setDatecreation(?\DateTimeInterface $datecreation): self
  81.     {
  82.         $this->datecreation $datecreation;
  83.         return $this;
  84.     }
  85.     public function getNumbs(): ?string
  86.     {
  87.         return $this->numbs;
  88.     }
  89.     public function setNumbs(?string $numbs): self
  90.     {
  91.         $this->numbs $numbs;
  92.         return $this;
  93.     }
  94.     public function getDate(): ?\DateTimeInterface
  95.     {
  96.         return $this->date;
  97.     }
  98.     public function setDate(?\DateTimeInterface $date): self
  99.     {
  100.         $this->date $date;
  101.         return $this;
  102.     }
  103.     public function getTotaleqte(): ?string
  104.     {
  105.         return $this->totaleqte;
  106.     }
  107.     public function setTotaleqte(?string $totaleqte): self
  108.     {
  109.         $this->totaleqte $totaleqte;
  110.         return $this;
  111.     }
  112.     public function getTotaleht(): ?string
  113.     {
  114.         return $this->totaleht;
  115.     }
  116.     public function setTotaleht(?string $totaleht): self
  117.     {
  118.         $this->totaleht $totaleht;
  119.         return $this;
  120.     }
  121.     public function getTotaltva(): ?string
  122.     {
  123.         return $this->totaltva;
  124.     }
  125.     public function setTotaltva(?string $totaltva): self
  126.     {
  127.         $this->totaltva $totaltva;
  128.         return $this;
  129.     }
  130.     public function getTotalttc(): ?string
  131.     {
  132.         return $this->totalttc;
  133.     }
  134.     public function setTotalttc(?string $totalttc): self
  135.     {
  136.         $this->totalttc $totalttc;
  137.         return $this;
  138.     }
  139.     /**
  140.      * @return Collection<int, Lignebondesortie>
  141.      */
  142.     public function getLignebondesorties(): Collection
  143.     {
  144.         return $this->lignebondesorties;
  145.     }
  146.     public function addLignebondesorty(Lignebondesortie $lignebondesorty): self
  147.     {
  148.         if (!$this->lignebondesorties->contains($lignebondesorty)) {
  149.             $this->lignebondesorties->add($lignebondesorty);
  150.             $lignebondesorty->setBondesorte($this);
  151.         }
  152.         return $this;
  153.     }
  154.     public function removeLignebondesorty(Lignebondesortie $lignebondesorty): self
  155.     {
  156.         if ($this->lignebondesorties->removeElement($lignebondesorty)) {
  157.             // set the owning side to null (unless already changed)
  158.             if ($lignebondesorty->getBondesorte() === $this) {
  159.                 $lignebondesorty->setBondesorte(null);
  160.             }
  161.         }
  162.         return $this;
  163.     }
  164.     public function getVendeur(): ?Fournisseur
  165.     {
  166.         return $this->vendeur;
  167.     }
  168.     public function setVendeur(?Fournisseur $vendeur): self
  169.     {
  170.         $this->vendeur $vendeur;
  171.         return $this;
  172.     }
  173.     public function getClient(): ?Client
  174.     {
  175.         return $this->client;
  176.     }
  177.     public function setClient(?Client $client): self
  178.     {
  179.         $this->client $client;
  180.         return $this;
  181.     }
  182. }