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\ManyToOne(targetEntity="App\Entity\User")
  28.      */
  29.     private $supportUser;
  30.     /**
  31.      * @ORM\ManyToOne(targetEntity="App\Entity\Accommodation")
  32.      */
  33.     private $accommodation;
  34.     /**
  35.      * @ORM\ManyToOne(targetEntity="App\Entity\AccommodationRoom")
  36.      */
  37.     private $room;
  38.     /**
  39.      * @ORM\Column(type="string", length=255, nullable=true)
  40.      */
  41.     private $subject;
  42.     /**
  43.      * @ORM\Column(type="string", length=100, nullable=true)
  44.      */
  45.     private $userType;
  46.     /**
  47.      * @Assert\Length(max=50)
  48.      * @ORM\Column(type="string", length=50, nullable=true)
  49.      */
  50.     private $firstname;
  51.     /**
  52.      * @Assert\Length(max=50)
  53.      * @ORM\Column(type="string", length=50, nullable=true)
  54.      */
  55.     private $lastname;
  56.     /**
  57.      * @Assert\Length(max=50)
  58.      * @ORM\Column(type="string", length=50, nullable=true)
  59.      */
  60.     private $phone;
  61.     /**
  62.      * @Assert\NotBlank()
  63.      * @Assert\Email()
  64.      * @Assert\Length(max=100)
  65.      * @ORM\Column(type="string", length=100)
  66.      */
  67.     private $email;
  68.     /**
  69.      * @ORM\Column(type="string", length=100, nullable=true)
  70.      */
  71.     private $company "";
  72.     /**
  73.      * @ORM\Column(type="string", length=50, nullable=true)
  74.      */
  75.     private $nationality "";
  76.     /**
  77.      * @ORM\Column(type="integer", nullable=true)
  78.      */
  79.     private $age;
  80.     /**
  81.      * @ORM\Column(type="datetime", nullable=true)
  82.      */
  83.     private $dateFrom;
  84.     /**
  85.      * @ORM\Column(type="datetime", nullable=true)
  86.      */
  87.     private $dateTo;
  88.     /**
  89.      * @ORM\Column(type="text", nullable=true)
  90.      */
  91.     private $message;
  92.     /**
  93.      * @Assert\Length(max=50)
  94.      * @ORM\Column(type="string", length=50, nullable=true)
  95.      */
  96.     private $nbBedrooms;
  97.     /**
  98.      * @Assert\Length(max=255)
  99.      * @ORM\Column(type="string", length=255, nullable=true)
  100.      */
  101.     private $address;
  102.     /**
  103.      * @ORM\Column(type="text", nullable=true)
  104.      */
  105.     private $internalComment;
  106.     /**
  107.      * @var \DateTime $createdAt
  108.      *
  109.      * @Gedmo\Timestampable(on="create")
  110.      * @ORM\Column(type="datetime")
  111.      */
  112.     private $createdAt;
  113.     /**
  114.      * @var \DateTime $updated
  115.      *
  116.      * @Gedmo\Timestampable(on="update")
  117.      * @ORM\Column(type="datetime")
  118.      */
  119.     private $updatedAt;
  120.     /**
  121.      * @ORM\Column(type="boolean", nullable=true)
  122.      */
  123.     private $archived false;
  124.     /**
  125.      * @ORM\Column(type="boolean", nullable=true)
  126.      */
  127.     private $optin;
  128.     /**
  129.      * @return mixed
  130.      */
  131.     public function getId()
  132.     {
  133.         return $this->id;
  134.     }
  135.     /**
  136.      * @param mixed $id
  137.      */
  138.     public function setId($id)
  139.     {
  140.         $this->id $id;
  141.     }
  142.     /**
  143.      * @return mixed
  144.      */
  145.     public function getStatus()
  146.     {
  147.         return $this->status;
  148.     }
  149.     /**
  150.      * @param mixed $status
  151.      */
  152.     public function setStatus($status)
  153.     {
  154.         $this->status $status;
  155.     }
  156.     /**
  157.      * @return mixed
  158.      */
  159.     public function getAccommodation()
  160.     {
  161.         return $this->accommodation;
  162.     }
  163.     /**
  164.      * @param mixed $accommodation
  165.      */
  166.     public function setAccommodation($accommodation)
  167.     {
  168.         $this->accommodation $accommodation;
  169.     }
  170.     /**
  171.      * @return mixed
  172.      */
  173.     public function getFirstname()
  174.     {
  175.         return $this->firstname;
  176.     }
  177.     /**
  178.      * @param mixed $firstname
  179.      */
  180.     public function setFirstname($firstname)
  181.     {
  182.         $this->firstname $firstname;
  183.     }
  184.     /**
  185.      * @return mixed
  186.      */
  187.     public function getLastname()
  188.     {
  189.         return $this->lastname;
  190.     }
  191.     /**
  192.      * @param mixed $lastname
  193.      */
  194.     public function setLastname($lastname)
  195.     {
  196.         $this->lastname $lastname;
  197.     }
  198.     /**
  199.      * @return mixed
  200.      */
  201.     public function getPhone()
  202.     {
  203.         return $this->phone;
  204.     }
  205.     /**
  206.      * @param mixed $phone
  207.      */
  208.     public function setPhone($phone)
  209.     {
  210.         $this->phone $phone;
  211.     }
  212.     /**
  213.      * @return mixed
  214.      */
  215.     public function getEmail()
  216.     {
  217.         return $this->email;
  218.     }
  219.     /**
  220.      * @param mixed $email
  221.      */
  222.     public function setEmail($email)
  223.     {
  224.         $this->email $email;
  225.     }
  226.     /**
  227.      * @return mixed
  228.      */
  229.     public function getNationality()
  230.     {
  231.         return $this->nationality;
  232.     }
  233.     /**
  234.      * @param mixed $nationality
  235.      */
  236.     public function setNationality($nationality)
  237.     {
  238.         $this->nationality $nationality;
  239.     }
  240.     /**
  241.      * @return mixed
  242.      */
  243.     public function getAge()
  244.     {
  245.         return $this->age;
  246.     }
  247.     /**
  248.      * @param mixed $age
  249.      */
  250.     public function setAge($age)
  251.     {
  252.         $this->age $age;
  253.     }
  254.     /**
  255.      * @return mixed
  256.      */
  257.     public function getDateFrom()
  258.     {
  259.         return $this->dateFrom;
  260.     }
  261.     /**
  262.      * @param mixed $dateFrom
  263.      */
  264.     public function setDateFrom($dateFrom)
  265.     {
  266.         $this->dateFrom $dateFrom;
  267.     }
  268.     /**
  269.      * @return mixed
  270.      */
  271.     public function getDateTo()
  272.     {
  273.         return $this->dateTo;
  274.     }
  275.     /**
  276.      * @param mixed $dateTo
  277.      */
  278.     public function setDateTo($dateTo)
  279.     {
  280.         $this->dateTo $dateTo;
  281.     }
  282.     /**
  283.      * @return mixed
  284.      */
  285.     public function getMessage()
  286.     {
  287.         return $this->message;
  288.     }
  289.     /**
  290.      * @param mixed $message
  291.      */
  292.     public function setMessage($message)
  293.     {
  294.         $this->message $message;
  295.     }
  296.     /**
  297.      * @return mixed
  298.      */
  299.     public function getInternalComment()
  300.     {
  301.         return $this->internalComment;
  302.     }
  303.     /**
  304.      * @param mixed $internalComment
  305.      */
  306.     public function setInternalComment($internalComment)
  307.     {
  308.         $this->internalComment $internalComment;
  309.     }
  310.     /**
  311.      * @return \DateTime
  312.      */
  313.     public function getCreatedAt(): \DateTime
  314.     {
  315.         return $this->createdAt;
  316.     }
  317.     /**
  318.      * @param \DateTime $createdAt
  319.      */
  320.     public function setCreatedAt(\DateTime $createdAt)
  321.     {
  322.         $this->createdAt $createdAt;
  323.     }
  324.     /**
  325.      * @return \DateTime
  326.      */
  327.     public function getUpdatedAt(): \DateTime
  328.     {
  329.         return $this->updatedAt;
  330.     }
  331.     /**
  332.      * @param \DateTime $updatedAt
  333.      */
  334.     public function setUpdatedAt(\DateTime $updatedAt)
  335.     {
  336.         $this->updatedAt $updatedAt;
  337.     }
  338.     /**
  339.      * @return mixed
  340.      */
  341.     public function getArchived()
  342.     {
  343.         return $this->archived;
  344.     }
  345.     /**
  346.      * @param mixed $archived
  347.      */
  348.     public function setArchived($archived)
  349.     {
  350.         $this->archived $archived;
  351.     }
  352.     /**
  353.      * @return mixed
  354.      */
  355.     public function getSupportUser()
  356.     {
  357.         return $this->supportUser;
  358.     }
  359.     /**
  360.      * @param mixed $supportUser
  361.      */
  362.     public function setSupportUser($supportUser)
  363.     {
  364.         $this->supportUser $supportUser;
  365.     }
  366.     /**
  367.      * @return mixed
  368.      */
  369.     public function getType()
  370.     {
  371.         return $this->type;
  372.     }
  373.     /**
  374.      * @param mixed $type
  375.      */
  376.     public function setType($type): void
  377.     {
  378.         $this->type $type;
  379.     }
  380.     /**
  381.      * @return mixed
  382.      */
  383.     public function getNbBedrooms()
  384.     {
  385.         return $this->nbBedrooms;
  386.     }
  387.     /**
  388.      * @param mixed $nbBedrooms
  389.      */
  390.     public function setNbBedrooms($nbBedrooms): void
  391.     {
  392.         $this->nbBedrooms $nbBedrooms;
  393.     }
  394.     /**
  395.      * @return mixed
  396.      */
  397.     public function getAddress()
  398.     {
  399.         return $this->address;
  400.     }
  401.     /**
  402.      * @param mixed $address
  403.      */
  404.     public function setAddress($address): void
  405.     {
  406.         $this->address $address;
  407.     }
  408.     /**
  409.      * @return mixed
  410.      */
  411.     public function getSubject()
  412.     {
  413.         return $this->subject;
  414.     }
  415.     /**
  416.      * @param mixed $subject
  417.      */
  418.     public function setSubject($subject): void
  419.     {
  420.         $this->subject $subject;
  421.     }
  422.     /**
  423.      * @return mixed
  424.      */
  425.     public function getUserType()
  426.     {
  427.         return $this->userType;
  428.     }
  429.     /**
  430.      * @param mixed $userType
  431.      */
  432.     public function setUserType($userType): void
  433.     {
  434.         $this->userType $userType;
  435.     }
  436.     /**
  437.      * @return string
  438.      */
  439.     public function getCompany()
  440.     {
  441.         return $this->company;
  442.     }
  443.     /**
  444.      * @param string $company
  445.      */
  446.     public function setCompany($company): void
  447.     {
  448.         $this->company $company;
  449.     }
  450.     /**
  451.      * @return mixed
  452.      */
  453.     public function getRoom()
  454.     {
  455.         return $this->room;
  456.     }
  457.     /**
  458.      * @param mixed $room
  459.      */
  460.     public function setRoom($room): void
  461.     {
  462.         $this->room $room;
  463.     }
  464.     /**
  465.      * @return mixed
  466.      */
  467.     public function getOptin()
  468.     {
  469.         return $this->optin;
  470.     }
  471.     /**
  472.      * @param mixed $optin
  473.      */
  474.     public function setOptin($optin): void
  475.     {
  476.         $this->optin $optin;
  477.     }
  478. }