src/Entity/DistributionCart.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Symfony\Component\Validator\Constraints as Assert;
  5. /**
  6.  * @ORM\Entity(repositoryClass="App\Repository\DistributionCartRepository")
  7.  */
  8. class DistributionCart
  9. {
  10.     /**
  11.      * @ORM\Id()
  12.      * @ORM\GeneratedValue()
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\ManyToOne(targetEntity="Cart",inversedBy="distributionCart", cascade={"persist"})
  18.      * @ORM\JoinColumn(name="cart_id", referencedColumnName="id" , nullable=true)
  19.      */
  20.     private $cart;
  21.     /**
  22.      * @ORM\Column(type="float", nullable=true)
  23.      */
  24.     private $prixHt;
  25.     /**
  26.      * @ORM\Column(type="float", nullable=true)
  27.      */
  28.     private $prixTtc;
  29.     /**
  30.      * @ORM\ManyToOne(targetEntity="DistributionFlyerQty", cascade={"persist"})
  31.      * @ORM\JoinColumn(name="distribution_flyer_qty_id", referencedColumnName="id" )
  32.      */
  33.     private $qty;
  34.     /**
  35.      * @ORM\Column(type="string", length=255)
  36.      * @Assert\NotBlank
  37.      */
  38.     private $adresse;
  39.     /**
  40.      * @ORM\Column(type="string", length=255, nullable=true)
  41.      */
  42.     private $codePostal;
  43.     /**
  44.      * @ORM\Column(type="string", length=255,nullable=true)
  45.      */
  46.     private $lat;
  47.     /**
  48.      * @ORM\Column(type="string", length=255,nullable=true)
  49.      */
  50.     private $longi;
  51.     /**
  52.      * @ORM\Column(type="float",nullable=true)
  53.      */
  54.     private $zonechalandise;
  55.     /**
  56.      * @ORM\Column(type="string", length=255, nullable=true)
  57.      */
  58.     private $ditribution_flyers ;
  59.     /**
  60.      * @ORM\Column(type="datetime")
  61.      * @Assert\NotBlank
  62.      */
  63.     private $datestart;
  64.     /**
  65.      * @ORM\Column(type="datetime")
  66.      * @Assert\NotBlank
  67.      */
  68.     private $dateEnd;
  69.     /**
  70.      * @ORM\Column(type="text", nullable=true)
  71.      */
  72.     private $commentaire;
  73.     /**
  74.      * @ORM\Column(type="boolean", nullable=true)
  75.      */
  76.     private $isCopees;
  77.     /**
  78.      * @ORM\Column(type="integer",  nullable=true)
  79.      */
  80.     private $nbrPersonne ;
  81.     
  82.     public function getId(): ?int
  83.     {
  84.         return $this->id;
  85.     }
  86.     public function getPrixHt(): ?float
  87.     {
  88.         return $this->prixHt;
  89.     }
  90.     public function setPrixHt(float $prixHt): self
  91.     {
  92.         $this->prixHt $prixHt;
  93.         return $this;
  94.     }
  95.     public function getPrixTtc(): ?float
  96.     {
  97.         return $this->prixTtc;
  98.     }
  99.     public function setPrixTtc(float $prixTtc): self
  100.     {
  101.         $this->prixTtc $prixTtc;
  102.         return $this;
  103.     }
  104.     public function getAdresse(): ?string
  105.     {
  106.         return $this->adresse;
  107.     }
  108.     public function setAdresse(?string $adresse): self
  109.     {
  110.         $this->adresse $adresse;
  111.         return $this;
  112.     }
  113.     public function getCodePostal(): ?string
  114.     {
  115.         return $this->codePostal;
  116.     }
  117.     public function setCodePostal(?string $codePostal): self
  118.     {
  119.         $this->codePostal $codePostal;
  120.         return $this;
  121.     }
  122.     public function getLat(): ?string
  123.     {
  124.         return $this->lat;
  125.     }
  126.     public function setLat(?string $lat): self
  127.     {
  128.         $this->lat $lat;
  129.         return $this;
  130.     }
  131.     public function getLongi(): ?string
  132.     {
  133.         return $this->longi;
  134.     }
  135.     public function setLongi(?string $longi): self
  136.     {
  137.         $this->longi $longi;
  138.         return $this;
  139.     }
  140.     public function getZonechalandise(): ?float
  141.     {
  142.         return $this->zonechalandise;
  143.     }
  144.     public function setZonechalandise(?float $zonechalandise): self
  145.     {
  146.         $this->zonechalandise $zonechalandise;
  147.         return $this;
  148.     }
  149.     public function getDitributionFlyers(): ?string
  150.     {
  151.         return $this->ditribution_flyers;
  152.     }
  153.     public function setDitributionFlyers(?string $ditribution_flyers): self
  154.     {
  155.         $this->ditribution_flyers $ditribution_flyers;
  156.         return $this;
  157.     }
  158.     public function getDatestart(): ?\DateTimeInterface
  159.     {
  160.         return $this->datestart;
  161.     }
  162.     public function setDatestart(?\DateTimeInterface $datestart): self
  163.     {
  164.         $this->datestart $datestart;
  165.         return $this;
  166.     }
  167.     public function getDateEnd(): ?\DateTimeInterface
  168.     {
  169.         return $this->dateEnd;
  170.     }
  171.     public function setDateEnd(?\DateTimeInterface $dateEnd): self
  172.     {
  173.         $this->dateEnd $dateEnd;
  174.         return $this;
  175.     }
  176.     public function getCommentaire(): ?string
  177.     {
  178.         return $this->commentaire;
  179.     }
  180.     public function setCommentaire(?string $commentaire): self
  181.     {
  182.         $this->commentaire $commentaire;
  183.         return $this;
  184.     }
  185.     public function getCart(): ?Cart
  186.     {
  187.         return $this->cart;
  188.     }
  189.     public function setCart(?Cart $cart): self
  190.     {
  191.         $this->cart $cart;
  192.         return $this;
  193.     }
  194.     public function getQty(): ?DistributionFlyerQty
  195.     {
  196.         return $this->qty;
  197.     }
  198.     public function setQty(?DistributionFlyerQty $qty): self
  199.     {
  200.         $this->qty $qty;
  201.         return $this;
  202.     }
  203.     public function getIsCopees(): ?bool
  204.     {
  205.         return $this->isCopees;
  206.     }
  207.     public function setIsCopees(?bool $isCopees): self
  208.     {
  209.         $this->isCopees $isCopees;
  210.         return $this;
  211.     }
  212.     public function getNbrPersonne(): ?string
  213.     {
  214.         return $this->nbrPersonne;
  215.     }
  216.     public function setNbrPersonne(?string $nbrPersonne): self
  217.     {
  218.         $this->nbrPersonne $nbrPersonne;
  219.         return $this;
  220.     }
  221. }