src/Entity/Devis.php line 11

Open in your IDE?
  1. <?php
  2.     namespace App\Entity;
  3.     use App\Repository\DevisRepository;
  4.     use Doctrine\ORM\Mapping as ORM;
  5.     /**
  6.      * @ORM\Entity(repositoryClass=DevisRepository::class)
  7.      */
  8.     class Devis
  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 $lastName;
  20.         /**
  21.          * @ORM\Column(type="string", length=255)
  22.          */
  23.         private $firstName;
  24.         /**
  25.          * @ORM\Column(type="string", length=255)
  26.          */
  27.         private $phone;
  28.         /**
  29.          * @ORM\Column(type="integer")
  30.          */
  31.         private $countPeople;
  32.         /**
  33.          * @ORM\Column(type="decimal", precision=10, scale=0)
  34.          */
  35.         private $budget;
  36.         /**
  37.          * @ORM\Column(type="string", length=255)
  38.          */
  39.         private $lieu;
  40.         /**
  41.          * @ORM\Column(type="date")
  42.          */
  43.         private $dateSouhaitee;
  44.         /**
  45.          * @ORM\Column(type="text")
  46.          */
  47.         private $comment;
  48.         /**
  49.          * @ORM\ManyToOne(targetEntity=User::class, inversedBy="devis")
  50.          */
  51.         private $user;
  52.         /**
  53.          * @ORM\Column(type="datetime", nullable=true)
  54.          */
  55.         private $createAt;
  56.         /**
  57.          * @ORM\Column(type="boolean", nullable=true)
  58.          */
  59.         private $sameDay;
  60.         /**
  61.          * @ORM\ManyToOne(targetEntity=Activity::class, inversedBy="mainDevis")
  62.          */
  63.         private $mainActivity;
  64.         /**
  65.          * @ORM\ManyToOne(targetEntity=Activity::class, inversedBy="secondaryDevis")
  66.          */
  67.         private $secondaryActivity;
  68.         /**
  69.          * @ORM\Column(type="string", length=255, nullable=true)
  70.          */
  71.         private $customMainActivity;
  72.         /**
  73.          * @ORM\Column(type="string", length=255, nullable=true)
  74.          */
  75.         private $customSecondaryActivity;
  76.         public function getId(): ?int
  77.         {
  78.             return $this->id;
  79.         }
  80.         public function getLastName(): ?string
  81.         {
  82.             return $this->lastName;
  83.         }
  84.         public function setLastNamestring $lastName ): self
  85.         {
  86.             $this->lastName $lastName;
  87.             return $this;
  88.         }
  89.         public function getFirstName(): ?string
  90.         {
  91.             return $this->firstName;
  92.         }
  93.         public function setFirstNamestring $firstName ): self
  94.         {
  95.             $this->firstName $firstName;
  96.             return $this;
  97.         }
  98.         public function getPhone(): ?string
  99.         {
  100.             return $this->phone;
  101.         }
  102.         public function setPhonestring $phone ): self
  103.         {
  104.             $this->phone $phone;
  105.             return $this;
  106.         }
  107.         public function getBudget(): ?string
  108.         {
  109.             return $this->budget;
  110.         }
  111.         public function setBudgetstring $budget ): self
  112.         {
  113.             $this->budget $budget;
  114.             return $this;
  115.         }
  116.         public function getLieu(): ?string
  117.         {
  118.             return $this->lieu;
  119.         }
  120.         public function setLieustring $lieu ): self
  121.         {
  122.             $this->lieu $lieu;
  123.             return $this;
  124.         }
  125.         public function getComment(): ?string
  126.         {
  127.             return $this->comment;
  128.         }
  129.         public function setCommentstring $comment ): self
  130.         {
  131.             $this->comment $comment;
  132.             return $this;
  133.         }
  134.         /**
  135.          * @return mixed
  136.          */
  137.         public function getUser()
  138.         {
  139.             return $this->user;
  140.         }
  141.         /**
  142.          * @param mixed $user
  143.          *
  144.          * @return Devis
  145.          */
  146.         public function setUser$user )
  147.         {
  148.             $this->user $user;
  149.             return $this;
  150.         }
  151.         /**
  152.          * @return mixed
  153.          */
  154.         public function getCountPeople()
  155.         {
  156.             return $this->countPeople;
  157.         }
  158.         /**
  159.          * @param mixed $countPeople
  160.          *
  161.          * @return Devis
  162.          */
  163.         public function setCountPeople$countPeople )
  164.         {
  165.             $this->countPeople $countPeople;
  166.             return $this;
  167.         }
  168.         /**
  169.          * @return mixed
  170.          */
  171.         public function getDateSouhaitee()
  172.         {
  173.             return $this->dateSouhaitee;
  174.         }
  175.         /**
  176.          * @param mixed $dateSouhaitee
  177.          *
  178.          * @return Devis
  179.          */
  180.         public function setDateSouhaitee$dateSouhaitee )
  181.         {
  182.             $this->dateSouhaitee $dateSouhaitee;
  183.             return $this;
  184.         }
  185.         /**
  186.          * @return mixed
  187.          */
  188.         public function getCreateAt()
  189.         {
  190.             return $this->createAt;
  191.         }
  192.         /**
  193.          * @param mixed $createAt
  194.          *
  195.          * @return Devis
  196.          */
  197.         public function setCreateAt$createAt )
  198.         {
  199.             $this->createAt $createAt;
  200.             return $this;
  201.         }
  202.         public function getSameDay(): ?bool
  203.         {
  204.             return $this->sameDay;
  205.         }
  206.         public function setSameDay( ?bool $sameDay ): self
  207.         {
  208.             $this->sameDay $sameDay;
  209.             return $this;
  210.         }
  211.         public function getMainActivity(): ?Activity
  212.         {
  213.             return $this->mainActivity;
  214.         }
  215.         public function setMainActivity( ?Activity $mainActivity ): self
  216.         {
  217.             $this->mainActivity $mainActivity;
  218.             return $this;
  219.         }
  220.         public function getSecondaryActivity()
  221.         {
  222.             return $this->secondaryActivity;
  223.         }
  224.         public function setSecondaryActivity$secondaryActivity ): self
  225.         {
  226.             $this->secondaryActivity $secondaryActivity;
  227.             return $this;
  228.         }
  229.         public function getCustomMainActivity(): ?string
  230.         {
  231.             return $this->customMainActivity;
  232.         }
  233.         public function setCustomMainActivity( ?string $customMainActivity ): self
  234.         {
  235.             $this->customMainActivity $customMainActivity;
  236.             return $this;
  237.         }
  238.         public function getCustomSecondaryActivity(): ?string
  239.         {
  240.             return $this->customSecondaryActivity;
  241.         }
  242.         public function setCustomSecondaryActivity( ?string $customSecondaryActivity ): self
  243.         {
  244.             $this->customSecondaryActivity $customSecondaryActivity;
  245.             return $this;
  246.         }
  247.     }