src/Entity/DemandeDeCotation.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Utils\SharedMethods;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass="App\Repository\DemandeDeCotationRepository")
  7.  */
  8. class DemandeDeCotation
  9. {
  10.     /**
  11.      * @ORM\Id()
  12.      * @ORM\GeneratedValue()
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\Column(type="string", length=255)
  18.      */
  19.     private $number;
  20.     /**
  21.      * @ORM\Column(type="string", length=255)
  22.      */
  23.     private $denomination;
  24.     /**
  25.      * @ORM\Column(type="string", length=255, nullable=true)
  26.      */
  27.     private $rcsiren;
  28.     /**
  29.      * @ORM\Column(type="string", length=255)
  30.      */
  31.     private $telephone;
  32.     /**
  33.      * @ORM\Column(type="string", length=255)
  34.      */
  35.     private $representantlegal;
  36.     /**
  37.      * @ORM\Column(type="string", length=255)
  38.      */
  39.     private $pays;
  40.     /**
  41.      * @ORM\Column(type="string", length=255)
  42.      */
  43.     private $courriel;
  44.     /**
  45.      * @ORM\Column(type="string", length=255)
  46.      */
  47.     private $origine;
  48.     /**
  49.      * @ORM\Column(type="string", length=255)
  50.      */
  51.     private $prixcible;
  52.     /**
  53.      * @ORM\ManyToOne(targetEntity="App\Entity\Emballage", inversedBy="demandeDeCotations")
  54.      */
  55.     private $emballage;
  56.     /**
  57.      * @ORM\ManyToOne(targetEntity="App\Entity\Conditionnement", inversedBy="demandeDeCotations")
  58.      */
  59.     private $conditionnement;
  60.     /**
  61.      * @ORM\ManyToOne(targetEntity="App\Entity\PaymentMethod", inversedBy="demandeDeCotations")
  62.      */
  63.     private $modedepayement;
  64.     /**
  65.      * @ORM\Column(type="string", length=255, nullable=true)
  66.      */
  67.     private $condition;
  68.     /**
  69.      * @ORM\Column(type="string", length=255, nullable=true)
  70.      */
  71.     private $delai;
  72.     /**
  73.      * @ORM\Column(type="string", length=255)
  74.      */
  75.     private $destination;
  76.     /**
  77.      * @ORM\Column(type="text", nullable=true)
  78.      */
  79.     private $exigence;
  80.     /**
  81.      * @ORM\Column(type="datetime")
  82.      */
  83.     private $createdAt;
  84.     /**
  85.      * @ORM\Column(type="datetime", nullable=true)
  86.      */
  87.     private $demand_at;
  88.     /**
  89.      * @ORM\ManyToOne(targetEntity="App\Entity\User", inversedBy="demandeDeCotations")
  90.      */
  91.     private $user;
  92.     /**
  93.      * @ORM\ManyToOne(targetEntity="App\Entity\Status", inversedBy="demandeDeCotations")
  94.      */
  95.     private $status;
  96.     /**
  97.      * @ORM\ManyToOne(targetEntity="App\Entity\Products", inversedBy="demandeDeCotations")
  98.      */
  99.     private $product;
  100.     /**
  101.      * @ORM\ManyToOne(targetEntity="App\Entity\SousJacent", inversedBy="demandeDeCotations")
  102.      */
  103.     private $sousjacent;
  104.     public function __construct()
  105.     {
  106.         $this->createdAt = new \DateTime('now');
  107.         $this->number SharedMethods::generateNumber($this->number"DDC");
  108.     }
  109.     public function getId(): ?int
  110.     {
  111.         return $this->id;
  112.     }
  113.     public function getNumber(): ?string
  114.     {
  115.         return $this->number;
  116.     }
  117.     public function setNumber(string $number): self
  118.     {
  119.         $this->number $number;
  120.         return $this;
  121.     }
  122.     public function getDenomination(): ?string
  123.     {
  124.         return $this->denomination;
  125.     }
  126.     public function setDenomination(string $denomination): self
  127.     {
  128.         $this->denomination $denomination;
  129.         return $this;
  130.     }
  131.     public function getRcsiren(): ?string
  132.     {
  133.         return $this->rcsiren;
  134.     }
  135.     public function setRcsiren(?string $rcsiren): self
  136.     {
  137.         $this->rcsiren $rcsiren;
  138.         return $this;
  139.     }
  140.     public function getTelephone(): ?string
  141.     {
  142.         return $this->telephone;
  143.     }
  144.     public function setTelephone(string $telephone): self
  145.     {
  146.         $this->telephone $telephone;
  147.         return $this;
  148.     }
  149.     public function getRepresentantlegal(): ?string
  150.     {
  151.         return $this->representantlegal;
  152.     }
  153.     public function setRepresentantlegal(string $representantlegal): self
  154.     {
  155.         $this->representantlegal $representantlegal;
  156.         return $this;
  157.     }
  158.     public function getPays(): ?string
  159.     {
  160.         return $this->pays;
  161.     }
  162.     public function setPays(string $pays): self
  163.     {
  164.         $this->pays $pays;
  165.         return $this;
  166.     }
  167.     public function getCourriel(): ?string
  168.     {
  169.         return $this->courriel;
  170.     }
  171.     public function setCourriel(string $courriel): self
  172.     {
  173.         $this->courriel $courriel;
  174.         return $this;
  175.     }
  176.     public function getOrigine(): ?string
  177.     {
  178.         return $this->origine;
  179.     }
  180.     public function setOrigine(string $origine): self
  181.     {
  182.         $this->origine $origine;
  183.         return $this;
  184.     }
  185.     public function getPrixcible(): ?string
  186.     {
  187.         return $this->prixcible;
  188.     }
  189.     public function setPrixcible(string $prixcible): self
  190.     {
  191.         $this->prixcible $prixcible;
  192.         return $this;
  193.     }
  194.     public function getEmballage(): ?Emballage
  195.     {
  196.         return $this->emballage;
  197.     }
  198.     public function setEmballage(?Emballage $emballage): self
  199.     {
  200.         $this->emballage $emballage;
  201.         return $this;
  202.     }
  203.     public function getConditionnement(): ?Conditionnement
  204.     {
  205.         return $this->conditionnement;
  206.     }
  207.     public function setConditionnement(?Conditionnement $conditionnement): self
  208.     {
  209.         $this->conditionnement $conditionnement;
  210.         return $this;
  211.     }
  212.     public function getModedepayement(): ?PaymentMethod
  213.     {
  214.         return $this->modedepayement;
  215.     }
  216.     public function setModedepayement(?PaymentMethod $modedepayement): self
  217.     {
  218.         $this->modedepayement $modedepayement;
  219.         return $this;
  220.     }
  221.     public function getCondition(): ?string
  222.     {
  223.         return $this->condition;
  224.     }
  225.     public function setCondition(?string $condition): self
  226.     {
  227.         $this->condition $condition;
  228.         return $this;
  229.     }
  230.     public function getDelai(): ?string
  231.     {
  232.         return $this->delai;
  233.     }
  234.     public function setDelai(?string $delai): self
  235.     {
  236.         $this->delai $delai;
  237.         return $this;
  238.     }
  239.     public function getDestination(): ?string
  240.     {
  241.         return $this->destination;
  242.     }
  243.     public function setDestination(string $destination): self
  244.     {
  245.         $this->destination $destination;
  246.         return $this;
  247.     }
  248.     public function getExigence(): ?string
  249.     {
  250.         return $this->exigence;
  251.     }
  252.     public function setExigence(?string $exigence): self
  253.     {
  254.         $this->exigence $exigence;
  255.         return $this;
  256.     }
  257.     public function getCreatedAt(): ?\DateTimeInterface
  258.     {
  259.         return $this->createdAt;
  260.     }
  261.     public function setCreatedAt(\DateTimeInterface $createdAt): self
  262.     {
  263.         $this->createdAt $createdAt;
  264.         return $this;
  265.     }
  266.     public function getDemandAt(): ?\DateTimeInterface
  267.     {
  268.         return $this->demand_at;
  269.     }
  270.     public function setDemandAt(?\DateTimeInterface $demand_at): self
  271.     {
  272.         $this->demand_at $demand_at;
  273.         return $this;
  274.     }
  275.     public function getUser(): ?User
  276.     {
  277.         return $this->user;
  278.     }
  279.     public function setUser(?User $user): self
  280.     {
  281.         $this->user $user;
  282.         return $this;
  283.     }
  284.     public function getStatus(): ?Status
  285.     {
  286.         return $this->status;
  287.     }
  288.     public function setStatus(?Status $status): self
  289.     {
  290.         $this->status $status;
  291.         return $this;
  292.     }
  293.     public function getProduct(): ?Products
  294.     {
  295.         return $this->product;
  296.     }
  297.     public function setProduct(?Products $product): self
  298.     {
  299.         $this->product $product;
  300.         return $this;
  301.     }
  302.     public function getSousjacent(): ?SousJacent
  303.     {
  304.         return $this->sousjacent;
  305.     }
  306.     public function setSousjacent(?SousJacent $sousjacent): self
  307.     {
  308.         $this->sousjacent $sousjacent;
  309.         return $this;
  310.     }
  311. }