<?php
namespace App\Entity;
use Symfony\Component\Validator\Constraints as Assert;
use Gedmo\Mapping\Annotation as Gedmo;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity
* @ORM\Table(name="cal_contact_message")
*/
class ContactMessage
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=50, nullable=true)
*/
private $type;
/**
* @ORM\Column(type="string", length=50, nullable=true)
*/
private $status;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\User")
*/
private $supportUser;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Accommodation")
*/
private $accommodation;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\AccommodationRoom")
*/
private $room;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $subject;
/**
* @ORM\Column(type="string", length=100, nullable=true)
*/
private $userType;
/**
* @Assert\Length(max=50)
* @ORM\Column(type="string", length=50, nullable=true)
*/
private $firstname;
/**
* @Assert\Length(max=50)
* @ORM\Column(type="string", length=50, nullable=true)
*/
private $lastname;
/**
* @Assert\Length(max=50)
* @ORM\Column(type="string", length=50, nullable=true)
*/
private $phone;
/**
* @Assert\NotBlank()
* @Assert\Email()
* @Assert\Length(max=100)
* @ORM\Column(type="string", length=100)
*/
private $email;
/**
* @ORM\Column(type="string", length=100, nullable=true)
*/
private $company = "";
/**
* @ORM\Column(type="string", length=50, nullable=true)
*/
private $nationality = "";
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $age;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $dateFrom;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $dateTo;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $message;
/**
* @Assert\Length(max=50)
* @ORM\Column(type="string", length=50, nullable=true)
*/
private $nbBedrooms;
/**
* @Assert\Length(max=255)
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $address;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $internalComment;
/**
* @var \DateTime $createdAt
*
* @Gedmo\Timestampable(on="create")
* @ORM\Column(type="datetime")
*/
private $createdAt;
/**
* @var \DateTime $updated
*
* @Gedmo\Timestampable(on="update")
* @ORM\Column(type="datetime")
*/
private $updatedAt;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $archived = false;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $optin;
/**
* @return mixed
*/
public function getId()
{
return $this->id;
}
/**
* @param mixed $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return mixed
*/
public function getStatus()
{
return $this->status;
}
/**
* @param mixed $status
*/
public function setStatus($status)
{
$this->status = $status;
}
/**
* @return mixed
*/
public function getAccommodation()
{
return $this->accommodation;
}
/**
* @param mixed $accommodation
*/
public function setAccommodation($accommodation)
{
$this->accommodation = $accommodation;
}
/**
* @return mixed
*/
public function getFirstname()
{
return $this->firstname;
}
/**
* @param mixed $firstname
*/
public function setFirstname($firstname)
{
$this->firstname = $firstname;
}
/**
* @return mixed
*/
public function getLastname()
{
return $this->lastname;
}
/**
* @param mixed $lastname
*/
public function setLastname($lastname)
{
$this->lastname = $lastname;
}
/**
* @return mixed
*/
public function getPhone()
{
return $this->phone;
}
/**
* @param mixed $phone
*/
public function setPhone($phone)
{
$this->phone = $phone;
}
/**
* @return mixed
*/
public function getEmail()
{
return $this->email;
}
/**
* @param mixed $email
*/
public function setEmail($email)
{
$this->email = $email;
}
/**
* @return mixed
*/
public function getNationality()
{
return $this->nationality;
}
/**
* @param mixed $nationality
*/
public function setNationality($nationality)
{
$this->nationality = $nationality;
}
/**
* @return mixed
*/
public function getAge()
{
return $this->age;
}
/**
* @param mixed $age
*/
public function setAge($age)
{
$this->age = $age;
}
/**
* @return mixed
*/
public function getDateFrom()
{
return $this->dateFrom;
}
/**
* @param mixed $dateFrom
*/
public function setDateFrom($dateFrom)
{
$this->dateFrom = $dateFrom;
}
/**
* @return mixed
*/
public function getDateTo()
{
return $this->dateTo;
}
/**
* @param mixed $dateTo
*/
public function setDateTo($dateTo)
{
$this->dateTo = $dateTo;
}
/**
* @return mixed
*/
public function getMessage()
{
return $this->message;
}
/**
* @param mixed $message
*/
public function setMessage($message)
{
$this->message = $message;
}
/**
* @return mixed
*/
public function getInternalComment()
{
return $this->internalComment;
}
/**
* @param mixed $internalComment
*/
public function setInternalComment($internalComment)
{
$this->internalComment = $internalComment;
}
/**
* @return \DateTime
*/
public function getCreatedAt(): \DateTime
{
return $this->createdAt;
}
/**
* @param \DateTime $createdAt
*/
public function setCreatedAt(\DateTime $createdAt)
{
$this->createdAt = $createdAt;
}
/**
* @return \DateTime
*/
public function getUpdatedAt(): \DateTime
{
return $this->updatedAt;
}
/**
* @param \DateTime $updatedAt
*/
public function setUpdatedAt(\DateTime $updatedAt)
{
$this->updatedAt = $updatedAt;
}
/**
* @return mixed
*/
public function getArchived()
{
return $this->archived;
}
/**
* @param mixed $archived
*/
public function setArchived($archived)
{
$this->archived = $archived;
}
/**
* @return mixed
*/
public function getSupportUser()
{
return $this->supportUser;
}
/**
* @param mixed $supportUser
*/
public function setSupportUser($supportUser)
{
$this->supportUser = $supportUser;
}
/**
* @return mixed
*/
public function getType()
{
return $this->type;
}
/**
* @param mixed $type
*/
public function setType($type): void
{
$this->type = $type;
}
/**
* @return mixed
*/
public function getNbBedrooms()
{
return $this->nbBedrooms;
}
/**
* @param mixed $nbBedrooms
*/
public function setNbBedrooms($nbBedrooms): void
{
$this->nbBedrooms = $nbBedrooms;
}
/**
* @return mixed
*/
public function getAddress()
{
return $this->address;
}
/**
* @param mixed $address
*/
public function setAddress($address): void
{
$this->address = $address;
}
/**
* @return mixed
*/
public function getSubject()
{
return $this->subject;
}
/**
* @param mixed $subject
*/
public function setSubject($subject): void
{
$this->subject = $subject;
}
/**
* @return mixed
*/
public function getUserType()
{
return $this->userType;
}
/**
* @param mixed $userType
*/
public function setUserType($userType): void
{
$this->userType = $userType;
}
/**
* @return string
*/
public function getCompany()
{
return $this->company;
}
/**
* @param string $company
*/
public function setCompany($company): void
{
$this->company = $company;
}
/**
* @return mixed
*/
public function getRoom()
{
return $this->room;
}
/**
* @param mixed $room
*/
public function setRoom($room): void
{
$this->room = $room;
}
/**
* @return mixed
*/
public function getOptin()
{
return $this->optin;
}
/**
* @param mixed $optin
*/
public function setOptin($optin): void
{
$this->optin = $optin;
}
}