src/Entity/TraitementDsDemdDachat.php line 16

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\Common\Collections\ArrayCollection;
  4. use Doctrine\Common\Collections\Collection;
  5. use Doctrine\ORM\EntityManagerInterface;
  6. use Doctrine\ORM\Mapping as ORM;
  7. use Symfony\Bundle\SecurityBundle\Security\UserAuthenticator;
  8. use Symfony\Component\Security\Core\Security;
  9. /**
  10.  * @ORM\Entity(repositoryClass="App\Repository\TraitementDsDemdDachatRepository")
  11.  */
  12. class TraitementDsDemdDachat
  13. {
  14.    
  15.     /**
  16.      * @ORM\Id()
  17.      * @ORM\GeneratedValue()
  18.      * @ORM\Column(type="integer")
  19.      */
  20.     private $id;
  21.     /**
  22.      * @ORM\Column(type="string", length=255,nullable=true)
  23.      */
  24.     private $numero;
  25.     /**
  26.      * @ORM\Column(type="datetime", nullable=true)
  27.      */
  28.     private $date_demd;
  29.     /**
  30.      * @ORM\Column(type="string", length=255, nullable=true)
  31.      */
  32.     private $contact;
  33.     /**
  34.      * @ORM\Column(type="string", length=255, nullable=true)
  35.      */
  36.     private $pays;
  37.     /**
  38.      * @ORM\Column(type="string", length=255, nullable=true)
  39.      */
  40.     private $rlce1;
  41.     /**
  42.      * @ORM\Column(type="string", length=255, nullable=true)
  43.      */
  44.     private $rlce2;
  45.     /**
  46.      * @ORM\Column(type="string", length=255, nullable=true)
  47.      */
  48.     private $rlce3;
  49.     /**
  50.      * @ORM\Column(type="string", length=255, nullable=true)
  51.      */
  52.     private $tel ;
  53.     /**
  54.      * @ORM\Column(type="string",  length=255, nullable=true)
  55.      */
  56.     private $email ;
  57.     /**
  58.      * @ORM\Column(type="string", length=255, nullable=true)
  59.      */
  60.     private $website ;
  61.     /**
  62.      * @ORM\Column(type="integer", nullable=true)
  63.      */
  64.     private $mail_envoye ;
  65.     /**
  66.      * @ORM\Column(type="integer", nullable=true)
  67.      */
  68.     private $appel_arg ;
  69.     /**
  70.      * @ORM\Column(type="string",length=255, nullable=true)
  71.      */
  72.     private $societe;
  73.     /**
  74.      * @ORM\Column(type="string",length=255, nullable=true)
  75.      */
  76.     private $rdv_physique;
  77.     /**
  78.      * @ORM\Column(type="datetime")
  79.      */
  80.     private $createdAt;
  81.     /**
  82.      * @ORM\ManyToOne(targetEntity="App\Entity\User", inversedBy="traitementDsDemdDachats")
  83.      */
  84.     private $user;
  85.     /**
  86.      * @ORM\ManyToOne(targetEntity="App\Entity\SousJacent", inversedBy="traitementDsDemdDachats")
  87.      */
  88.     private $sous_jacent;
  89.     /**
  90.      * @ORM\ManyToOne(targetEntity="App\Entity\Status", inversedBy="traitementDsDemdDachats")
  91.      */
  92.     private $status;
  93.     /**
  94.      * @ORM\ManyToOne(targetEntity="App\Entity\User", inversedBy="agent")
  95.      */
  96.     private $agent;
  97.     /**
  98.      * @ORM\ManyToOne(targetEntity="App\Entity\Niveau", inversedBy="traitementDsDemdDachats")
  99.      */
  100.     private $niveau;
  101.     /**
  102.      * @ORM\ManyToOne(targetEntity="App\Entity\PlaceDeMarche", inversedBy="traitementDsDemdDachats")
  103.      */
  104.     private $place_de_marche;
  105.     /**
  106.      * @ORM\ManyToOne(targetEntity="App\Entity\Products", inversedBy="traitementDsDemdDachats")
  107.      */
  108.     private $produit;
  109.     // public  function __construct(Security $security){
  110.     //     $this->createdAt = new \DateTime('now');
  111.     //     if (!isset($this->numero)){
  112.     //         $this->numero = 'DA'.random_int(1,99).date('s');
  113.     //     }else{
  114.     //         $this->numero = 'DA'.random_int(1,99).date('s');
  115.     //     }
  116.     //     $this->user = $security->getUser();
  117.     // }
  118.     public  function __construct(){
  119.         $this->createdAt = new \DateTime('now');
  120.         if (!isset($this->numero)){
  121.             $this->numero 'DA'.random_int(1,99).date('s');
  122.         }else{
  123.             $this->numero 'DA'.random_int(1,99).date('s');
  124.         }
  125.         // $this->user = $security->getUser();
  126.     }
  127.     /**
  128.      * @return mixed
  129.      */
  130.     public function getId(): ?int
  131.     {
  132.         return $this->id;
  133.     }
  134.     /**
  135.      * @return mixed
  136.      */
  137.     public function getNumero():?string
  138.     {
  139.         return $this->numero;
  140.     }
  141.     /**
  142.      * @param mixed $numero
  143.      * @return TraitementDsDemdDachat
  144.      */
  145.     public function setNumero(?string $numero): self
  146.     {
  147.         $this->numero $numero;
  148.         return $this;
  149.     }
  150.     public function getDateDemd():?\DateTimeInterface
  151.     {
  152.         return $this->date_demd;
  153.     }
  154.     public function setDateDemd(?\DateTimeInterface $date_demd):self
  155.     {
  156.         $this->date_demd $date_demd;
  157.         return $this;
  158.     }
  159.     /**
  160.      * @return mixed
  161.      */
  162.     public function getContact():?string
  163.     {
  164.         return $this->contact;
  165.     }
  166.     /**
  167.      * @param mixed $contact
  168.      * @return TraitementDsDemdDachat
  169.      */
  170.     public function setContact(?string $contact): self
  171.     {
  172.         $this->contact $contact;
  173.         return $this;
  174.     }
  175.     /**
  176.      * @return mixed
  177.      */
  178.     public function getPays():?string
  179.     {
  180.         return $this->pays;
  181.     }
  182.     /**
  183.      * @param mixed $pays
  184.      * @return TraitementDsDemdDachat
  185.      */
  186.     public function setPays(?string $pays): self
  187.     {
  188.         $this->pays $pays;
  189.         return $this;
  190.     }
  191.     /**
  192.      * @return mixed
  193.      */
  194.     public function getRlce1():?string
  195.     {
  196.         return $this->rlce1;
  197.     }
  198.     /**
  199.      * @param mixed $rlce1
  200.      * @return TraitementDsDemdDachat
  201.      */
  202.     public function setRlce1(?string $rlce1): self
  203.     {
  204.         $this->rlce1 $rlce1;
  205.         return $this;
  206.     }
  207.     /**
  208.      * @return mixed
  209.      */
  210.     public function getRlce2():?string
  211.     {
  212.         return $this->rlce2;
  213.     }
  214.     /**
  215.      * @param mixed $rlce2
  216.      * @return TraitementDsDemdDachat
  217.      */
  218.     public function setRlce2(?string $rlce2): self
  219.     {
  220.         $this->rlce2 $rlce2;
  221.         return $this;
  222.     }
  223.     /**
  224.      * @return mixed
  225.      */
  226.     public function getRlce3():?string
  227.     {
  228.         return $this->rlce3;
  229.     }
  230.     /**
  231.      * @param mixed $rlce3
  232.      * @return TraitementDsDemdDachat
  233.      */
  234.     public function setRlce3(?string $rlce3): self
  235.     {
  236.         $this->rlce3 $rlce3;
  237.         return $this;
  238.     }
  239.     /**
  240.      * @return mixed
  241.      */
  242.     public function getTel():?string
  243.     {
  244.         return $this->tel;
  245.     }
  246.     /**
  247.      * @param mixed $tel
  248.      * @return TraitementDsDemdDachat
  249.      */
  250.     public function setTel(?string $tel): self
  251.     {
  252.         $this->tel $tel;
  253.         return $this;
  254.     }
  255.     /**
  256.      * @return mixed
  257.      */
  258.     public function getEmail():?string
  259.     {
  260.         return $this->email;
  261.     }
  262.     /**
  263.      * @param mixed $email
  264.      * @return TraitementDsDemdDachat
  265.      */
  266.     public function setEmail(?string $email): self
  267.     {
  268.         $this->email $email;
  269.         return $this;
  270.     }
  271.     /**
  272.      * @return mixed
  273.      */
  274.     public function getWebsite():?string
  275.     {
  276.         return $this->website;
  277.     }
  278.     /**
  279.      * @param mixed $website
  280.      * @return TraitementDsDemdDachat
  281.      */
  282.     public function setWebsite(?string $website): self
  283.     {
  284.         $this->website $website;
  285.         return $this;
  286.     }
  287.     /**
  288.      * @return mixed
  289.      */
  290.     public function getMailEnvoye():?string
  291.     {
  292.         return $this->mail_envoye;
  293.     }
  294.     /**
  295.      * @param mixed $mail_envoye
  296.      * @return TraitementDsDemdDachat
  297.      */
  298.     public function setMailEnvoye(?string $mail_envoye): self
  299.     {
  300.         $this->mail_envoye $mail_envoye;
  301.         return $this;
  302.     }
  303.     /**
  304.      * @return mixed
  305.      */
  306.     public function getAppelArg():?string
  307.     {
  308.         return $this->appel_arg;
  309.     }
  310.     /**
  311.      * @param mixed $appel_arg
  312.      * @return TraitementDsDemdDachat
  313.      */
  314.     public function setAppelArg(?string $appel_arg): self
  315.     {
  316.         $this->appel_arg $appel_arg;
  317.         return $this;
  318.     }
  319.     /**
  320.      * @return mixed
  321.      */
  322.     public function getSociete():?string
  323.     {
  324.         return $this->societe;
  325.     }
  326.     /**
  327.      * @param mixed $societe
  328.      * @return TraitementDsDemdDachat
  329.      */
  330.     public function setSociete(?string $societe): self
  331.     {
  332.         $this->societe $societe;
  333.         return $this;
  334.     }
  335.     /**
  336.      * @return mixed
  337.      */
  338.     public function getCreatedAt()
  339.     {
  340.         return $this->createdAt;
  341.     }
  342.     /**
  343.      * @param mixed $createdAt
  344.      * @return TraitementDsDemdDachat
  345.      */
  346.     public function setCreatedAt($createdAt)
  347.     {
  348.         $this->createdAt $createdAt;
  349.         return $this;
  350.     }
  351.     /**
  352.      * @return mixed
  353.      */
  354.     public function getRdvPhysique()
  355.     {
  356.         return $this->rdv_physique;
  357.     }
  358.     /**
  359.      * @param mixed $rdv_physique
  360.      * @return  TraitementDsDemdDachat
  361.      */
  362.     public function setRdvPhysique(?string $rdv_physique): self
  363.     {
  364.         $this->rdv_physique $rdv_physique;
  365.         return $this;
  366.     }
  367.     public function __toString(){
  368.         return $this->numero;
  369.     }
  370.     public function getUser(): ?User
  371.     {
  372.         return $this->user;
  373.     }
  374.     public function setUser(?User $user): self
  375.     {
  376.         $this->user $user;
  377.         return $this;
  378.     }
  379.     public function getSousJacent(): ?SousJacent
  380.     {
  381.         return $this->sous_jacent;
  382.     }
  383.     public function setSousJacent(?SousJacent $sous_jacent): self
  384.     {
  385.         $this->sous_jacent $sous_jacent;
  386.         return $this;
  387.     }
  388.     public function getStatus(): ?Status
  389.     {
  390.         return $this->status;
  391.     }
  392.     public function setStatus(?Status $status): self
  393.     {
  394.         $this->status $status;
  395.         return $this;
  396.     }
  397.     public function getAgent(): ?User
  398.     {
  399.         return $this->agent;
  400.     }
  401.     public function setAgent(?User $agent): self
  402.     {
  403.         $this->agent $agent;
  404.         return $this;
  405.     }
  406.     public function getNiveau(): ?Niveau
  407.     {
  408.         return $this->niveau;
  409.     }
  410.     public function setNiveau(?Niveau $niveau): self
  411.     {
  412.         $this->niveau $niveau;
  413.         return $this;
  414.     }
  415.     public function getPlaceDeMarche(): ?PlaceDeMarche
  416.     {
  417.         return $this->place_de_marche;
  418.     }
  419.     public function setPlaceDeMarche(?PlaceDeMarche $place_de_marche): self
  420.     {
  421.         $this->place_de_marche $place_de_marche;
  422.         return $this;
  423.     }
  424.     public function getProduit(): ?Products
  425.     {
  426.         return $this->produit;
  427.     }
  428.     public function setProduit(?Products $produit): self
  429.     {
  430.         $this->produit $produit;
  431.         return $this;
  432.     }
  433. }