src/Entity/ContactMessage.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Symfony\Component\Validator\Constraints as Assert;
  4. use Gedmo\Mapping\Annotation as Gedmo;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7.  * @ORM\Entity
  8.  * @ORM\Table(name="cal_contact_message")
  9.  */
  10. class ContactMessage
  11. {
  12.     /**
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private $id;
  18.     /**
  19.      * @ORM\Column(type="string", length=50, nullable=true)
  20.      */
  21.     private $type;
  22.     /**
  23.      * @ORM\Column(type="string", length=50, nullable=true)
  24.      */
  25.     private $status;
  26.     /**
  27.      * @ORM\Column(type="string", length=10, nullable=true)
  28.      */
  29.     private $civility;
  30.     /**
  31.      * @ORM\Column(type="datetime", nullable=true)
  32.      */
  33.     private $firstContactDate;
  34.     /**
  35.      * @ORM\Column(type="string", length=50, nullable=true)
  36.      */
  37.     private $answerType;
  38.     /**
  39.      * @ORM\Column(type="string", length=50, nullable=true)
  40.      */
  41.     private $workStatus;
  42.     /**
  43.      * @ORM\Column(type="string", length=50, nullable=true)
  44.      */
  45.     private $contactedFrom;
  46.     /**
  47.      * @ORM\Column(type="boolean", nullable=true)
  48.      */
  49.     private $visited;
  50.     /**
  51.      * @ORM\Column(type="boolean", nullable=true)
  52.      */
  53.     private $booked;
  54.     /**
  55.      * @ORM\Column(type="datetime", nullable=true)
  56.      */
  57.     private $leaseStartDate;
  58.     /**
  59.      * @ORM\Column(type="text", nullable=true)
  60.      */
  61.     private $answer;
  62.     /**
  63.      * @ORM\Column(type="datetime", nullable=true)
  64.      */
  65.     private $answerDate;
  66.     /**
  67.      * @ORM\ManyToOne(targetEntity="App\Entity\User")
  68.      */
  69.     private $supportUser;
  70.     /**
  71.      * @ORM\ManyToOne(targetEntity="App\Entity\Accommodation")
  72.      */
  73.     private $accommodation;
  74.     /**
  75.      * @ORM\ManyToOne(targetEntity="App\Entity\AccommodationRoom")
  76.      */
  77.     private $room;
  78.     /**
  79.      * @ORM\Column(type="string", length=255, nullable=true)
  80.      */
  81.     private $subject;
  82.     /**
  83.      * @ORM\Column(type="string", length=100, nullable=true)
  84.      */
  85.     private $userType;
  86.     /**
  87.      * @Assert\Length(max=50)
  88.      * @ORM\Column(type="string", length=50, nullable=true)
  89.      */
  90.     private $firstname;
  91.     /**
  92.      * @Assert\Length(max=50)
  93.      * @ORM\Column(type="string", length=50, nullable=true)
  94.      */
  95.     private $lastname;
  96.     /**
  97.      * @Assert\Length(max=50)
  98.      * @ORM\Column(type="string", length=50, nullable=true)
  99.      */
  100.     private $phone;
  101.     /**
  102.      * @Assert\NotBlank()
  103.      * @Assert\Email()
  104.      * @Assert\Length(max=100)
  105.      * @ORM\Column(type="string", length=100)
  106.      */
  107.     private $email;
  108.     /**
  109.      * @ORM\Column(type="string", length=100, nullable=true)
  110.      */
  111.     private $company "";
  112.     /**
  113.      * @ORM\Column(type="string", length=50, nullable=true)
  114.      */
  115.     private $nationality "";
  116.     /**
  117.      * @ORM\Column(type="integer", nullable=true)
  118.      */
  119.     private $age;
  120.     /**
  121.      * @ORM\Column(type="datetime", nullable=true)
  122.      */
  123.     private $dateFrom;
  124.     /**
  125.      * @ORM\Column(type="datetime", nullable=true)
  126.      */
  127.     private $dateTo;
  128.     /**
  129.      * @ORM\Column(type="text", nullable=true)
  130.      */
  131.     private $message;
  132.     /**
  133.      * @Assert\Length(max=50)
  134.      * @ORM\Column(type="string", length=50, nullable=true)
  135.      */
  136.     private $nbBedrooms;
  137.     /**
  138.      * @Assert\Length(max=255)
  139.      * @ORM\Column(type="string", length=255, nullable=true)
  140.      */
  141.     private $address;
  142.     /**
  143.      * @ORM\Column(type="text", nullable=true)
  144.      */
  145.     private $internalComment;
  146.     /**
  147.      * @var \DateTime $createdAt
  148.      *
  149.      * @Gedmo\Timestampable(on="create")
  150.      * @ORM\Column(type="datetime")
  151.      */
  152.     private $createdAt;
  153.     /**
  154.      * @var \DateTime $updated
  155.      *
  156.      * @Gedmo\Timestampable(on="update")
  157.      * @ORM\Column(type="datetime")
  158.      */
  159.     private $updatedAt;
  160.     /**
  161.      * @ORM\Column(type="boolean", nullable=true)
  162.      */
  163.     private $archived false;
  164.     /**
  165.      * @ORM\Column(type="boolean", nullable=true)
  166.      */
  167.     private $optin;
  168.     /**
  169.      * @return mixed
  170.      */
  171.     public function getId()
  172.     {
  173.         return $this->id;
  174.     }
  175.     /**
  176.      * @param mixed $id
  177.      */
  178.     public function setId($id)
  179.     {
  180.         $this->id $id;
  181.     }
  182.     /**
  183.      * @return mixed
  184.      */
  185.     public function getStatus()
  186.     {
  187.         return $this->status;
  188.     }
  189.     /**
  190.      * @param mixed $status
  191.      */
  192.     public function setStatus($status)
  193.     {
  194.         $this->status $status;
  195.     }
  196.     /**
  197.      * @return mixed
  198.      */
  199.     public function getAccommodation()
  200.     {
  201.         return $this->accommodation;
  202.     }
  203.     /**
  204.      * @param mixed $accommodation
  205.      */
  206.     public function setAccommodation($accommodation)
  207.     {
  208.         $this->accommodation $accommodation;
  209.     }
  210.     /**
  211.      * @return mixed
  212.      */
  213.     public function getFirstname()
  214.     {
  215.         return $this->firstname;
  216.     }
  217.     /**
  218.      * @param mixed $firstname
  219.      */
  220.     public function setFirstname($firstname)
  221.     {
  222.         $this->firstname $firstname;
  223.     }
  224.     /**
  225.      * @return mixed
  226.      */
  227.     public function getLastname()
  228.     {
  229.         return $this->lastname;
  230.     }
  231.     /**
  232.      * @param mixed $lastname
  233.      */
  234.     public function setLastname($lastname)
  235.     {
  236.         $this->lastname $lastname;
  237.     }
  238.     /**
  239.      * @return mixed
  240.      */
  241.     public function getPhone()
  242.     {
  243.         return $this->phone;
  244.     }
  245.     /**
  246.      * @param mixed $phone
  247.      */
  248.     public function setPhone($phone)
  249.     {
  250.         $this->phone $phone;
  251.     }
  252.     /**
  253.      * @return mixed
  254.      */
  255.     public function getEmail()
  256.     {
  257.         return $this->email;
  258.     }
  259.     /**
  260.      * @param mixed $email
  261.      */
  262.     public function setEmail($email)
  263.     {
  264.         $this->email $email;
  265.     }
  266.     /**
  267.      * @return mixed
  268.      */
  269.     public function getNationality()
  270.     {
  271.         return $this->nationality;
  272.     }
  273.     /**
  274.      * @param mixed $nationality
  275.      */
  276.     public function setNationality($nationality)
  277.     {
  278.         $this->nationality $nationality;
  279.     }
  280.     /**
  281.      * @return mixed
  282.      */
  283.     public function getAge()
  284.     {
  285.         return $this->age;
  286.     }
  287.     /**
  288.      * @param mixed $age
  289.      */
  290.     public function setAge($age)
  291.     {
  292.         $this->age $age;
  293.     }
  294.     /**
  295.      * @return mixed
  296.      */
  297.     public function getDateFrom()
  298.     {
  299.         return $this->dateFrom;
  300.     }
  301.     /**
  302.      * @param mixed $dateFrom
  303.      */
  304.     public function setDateFrom($dateFrom)
  305.     {
  306.         $this->dateFrom $dateFrom;
  307.     }
  308.     /**
  309.      * @return mixed
  310.      */
  311.     public function getDateTo()
  312.     {
  313.         return $this->dateTo;
  314.     }
  315.     /**
  316.      * @param mixed $dateTo
  317.      */
  318.     public function setDateTo($dateTo)
  319.     {
  320.         $this->dateTo $dateTo;
  321.     }
  322.     /**
  323.      * @return mixed
  324.      */
  325.     public function getMessage()
  326.     {
  327.         return $this->message;
  328.     }
  329.     /**
  330.      * @param mixed $message
  331.      */
  332.     public function setMessage($message)
  333.     {
  334.         $this->message $message;
  335.     }
  336.     /**
  337.      * @return mixed
  338.      */
  339.     public function getInternalComment()
  340.     {
  341.         return $this->internalComment;
  342.     }
  343.     /**
  344.      * @param mixed $internalComment
  345.      */
  346.     public function setInternalComment($internalComment)
  347.     {
  348.         $this->internalComment $internalComment;
  349.     }
  350.     /**
  351.      * @return \DateTime
  352.      */
  353.     public function getCreatedAt(): \DateTime
  354.     {
  355.         return $this->createdAt;
  356.     }
  357.     /**
  358.      * @param \DateTime $createdAt
  359.      */
  360.     public function setCreatedAt(\DateTime $createdAt)
  361.     {
  362.         $this->createdAt $createdAt;
  363.     }
  364.     /**
  365.      * @return \DateTime
  366.      */
  367.     public function getUpdatedAt(): \DateTime
  368.     {
  369.         return $this->updatedAt;
  370.     }
  371.     /**
  372.      * @param \DateTime $updatedAt
  373.      */
  374.     public function setUpdatedAt(\DateTime $updatedAt)
  375.     {
  376.         $this->updatedAt $updatedAt;
  377.     }
  378.     /**
  379.      * @return mixed
  380.      */
  381.     public function getArchived()
  382.     {
  383.         return $this->archived;
  384.     }
  385.     /**
  386.      * @param mixed $archived
  387.      */
  388.     public function setArchived($archived)
  389.     {
  390.         $this->archived $archived;
  391.     }
  392.     /**
  393.      * @return mixed
  394.      */
  395.     public function getSupportUser()
  396.     {
  397.         return $this->supportUser;
  398.     }
  399.     /**
  400.      * @param mixed $supportUser
  401.      */
  402.     public function setSupportUser($supportUser)
  403.     {
  404.         $this->supportUser $supportUser;
  405.     }
  406.     /**
  407.      * @return mixed
  408.      */
  409.     public function getType()
  410.     {
  411.         return $this->type;
  412.     }
  413.     /**
  414.      * @param mixed $type
  415.      */
  416.     public function setType($type): void
  417.     {
  418.         $this->type $type;
  419.     }
  420.     /**
  421.      * @return mixed
  422.      */
  423.     public function getNbBedrooms()
  424.     {
  425.         return $this->nbBedrooms;
  426.     }
  427.     /**
  428.      * @param mixed $nbBedrooms
  429.      */
  430.     public function setNbBedrooms($nbBedrooms): void
  431.     {
  432.         $this->nbBedrooms $nbBedrooms;
  433.     }
  434.     /**
  435.      * @return mixed
  436.      */
  437.     public function getAddress()
  438.     {
  439.         return $this->address;
  440.     }
  441.     /**
  442.      * @param mixed $address
  443.      */
  444.     public function setAddress($address): void
  445.     {
  446.         $this->address $address;
  447.     }
  448.     /**
  449.      * @return mixed
  450.      */
  451.     public function getSubject()
  452.     {
  453.         return $this->subject;
  454.     }
  455.     /**
  456.      * @param mixed $subject
  457.      */
  458.     public function setSubject($subject): void
  459.     {
  460.         $this->subject $subject;
  461.     }
  462.     /**
  463.      * @return mixed
  464.      */
  465.     public function getUserType()
  466.     {
  467.         return $this->userType;
  468.     }
  469.     /**
  470.      * @param mixed $userType
  471.      */
  472.     public function setUserType($userType): void
  473.     {
  474.         $this->userType $userType;
  475.     }
  476.     /**
  477.      * @return string
  478.      */
  479.     public function getCompany()
  480.     {
  481.         return $this->company;
  482.     }
  483.     /**
  484.      * @param string $company
  485.      */
  486.     public function setCompany($company): void
  487.     {
  488.         $this->company $company;
  489.     }
  490.     /**
  491.      * @return mixed
  492.      */
  493.     public function getRoom()
  494.     {
  495.         return $this->room;
  496.     }
  497.     /**
  498.      * @param mixed $room
  499.      */
  500.     public function setRoom($room): void
  501.     {
  502.         $this->room $room;
  503.     }
  504.     /**
  505.      * @return mixed
  506.      */
  507.     public function getOptin()
  508.     {
  509.         return $this->optin;
  510.     }
  511.     /**
  512.      * @param mixed $optin
  513.      */
  514.     public function setOptin($optin): void
  515.     {
  516.         $this->optin $optin;
  517.     }
  518.     /**
  519.      * @return mixed
  520.      */
  521.     public function getFirstContactDate()
  522.     {
  523.         return $this->firstContactDate;
  524.     }
  525.     /**
  526.      * @param mixed $firstContactDate
  527.      */
  528.     public function setFirstContactDate($firstContactDate): void
  529.     {
  530.         $this->firstContactDate $firstContactDate;
  531.     }
  532.     /**
  533.      * @return mixed
  534.      */
  535.     public function getAnswerType()
  536.     {
  537.         return $this->answerType;
  538.     }
  539.     /**
  540.      * @param mixed $answerType
  541.      */
  542.     public function setAnswerType($answerType): void
  543.     {
  544.         $this->answerType $answerType;
  545.     }
  546.     /**
  547.      * @return mixed
  548.      */
  549.     public function getWorkStatus()
  550.     {
  551.         return $this->workStatus;
  552.     }
  553.     /**
  554.      * @param mixed $workStatus
  555.      */
  556.     public function setWorkStatus($workStatus): void
  557.     {
  558.         $this->workStatus $workStatus;
  559.     }
  560.     /**
  561.      * @return mixed
  562.      */
  563.     public function getContactedFrom()
  564.     {
  565.         return $this->contactedFrom;
  566.     }
  567.     /**
  568.      * @param mixed $contactedFrom
  569.      */
  570.     public function setContactedFrom($contactedFrom): void
  571.     {
  572.         $this->contactedFrom $contactedFrom;
  573.     }
  574.     /**
  575.      * @return mixed
  576.      */
  577.     public function getVisited()
  578.     {
  579.         return $this->visited;
  580.     }
  581.     /**
  582.      * @param mixed $visited
  583.      */
  584.     public function setVisited($visited): void
  585.     {
  586.         $this->visited $visited;
  587.     }
  588.     /**
  589.      * @return mixed
  590.      */
  591.     public function getBooked()
  592.     {
  593.         return $this->booked;
  594.     }
  595.     /**
  596.      * @param mixed $booked
  597.      */
  598.     public function setBooked($booked): void
  599.     {
  600.         $this->booked $booked;
  601.     }
  602.     /**
  603.      * @return mixed
  604.      */
  605.     public function getLeaseStartDate()
  606.     {
  607.         return $this->leaseStartDate;
  608.     }
  609.     /**
  610.      * @param mixed $leaseStartDate
  611.      */
  612.     public function setLeaseStartDate($leaseStartDate): void
  613.     {
  614.         $this->leaseStartDate $leaseStartDate;
  615.     }
  616.     /**
  617.      * @return mixed
  618.      */
  619.     public function getCivility()
  620.     {
  621.         return $this->civility;
  622.     }
  623.     /**
  624.      * @param mixed $civility
  625.      */
  626.     public function setCivility($civility): void
  627.     {
  628.         $this->civility $civility;
  629.     }
  630.     /**
  631.      * @return mixed
  632.      */
  633.     public function getAnswer()
  634.     {
  635.         return $this->answer;
  636.     }
  637.     /**
  638.      * @param mixed $answer
  639.      */
  640.     public function setAnswer($answer): void
  641.     {
  642.         $this->answer $answer;
  643.     }
  644.     /**
  645.      * @return mixed
  646.      */
  647.     public function getAnswerDate()
  648.     {
  649.         return $this->answerDate;
  650.     }
  651.     /**
  652.      * @param mixed $answerDate
  653.      */
  654.     public function setAnswerDate($answerDate): void
  655.     {
  656.         $this->answerDate $answerDate;
  657.     }
  658. }