<?php
namespace App\MDS\EventsBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
/**
* Proposal
*
* @ORM\Table(name="proposals")
* @ORM\Entity(repositoryClass="App\MDS\EventsBundle\Repository\ProposalRepository")
* @ORM\HasLifecycleCallbacks()
*/
class Proposal
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @var string
*
* @ORM\Column(name="name", type="string", length=255)
* @Assert\NotBlank()
*
*/
private $name;
/**
* @var string
*
* @ORM\Column(name="title", type="string", length=255, nullable=true)
*/
private $title;
/**
* @var string
*
* @ORM\Column(name="commission", type="string", length=255, nullable=true)
*/
private $commission;
/**
* @var string
*
* @ORM\Column(name="pax", type="string", length=255)
* @Assert\NotBlank()
*/
private $pax;
/**
* @var string
*
* @ORM\Column(name="bedrooms", type="string", length=255, nullable=true)
*/
private $bedrooms;
/**
* @var string
*
* @ORM\Column(name="office_id", type="string", length=255)
* @Assert\NotBlank()
*/
private $officeId;
/**
* @var int
*
* @ORM\Column(name="client_id", type="integer")
* @Assert\NotBlank()
*
*/
private $clientId;
/**
* @var int
*
* @ORM\Column(name="contact_id", type="integer")
* @Assert\NotBlank()
*/
private $contactId;
/**
* @var string
*
* @ORM\Column(name="reference_name", type="string", nullable=true)
*/
private $referenceName;
/**
* @var string
*
* @ORM\Column(name="reference_id", type="string", nullable=true)
*/
private $referenceId;
/**
* @var int
*
* @ORM\Column(name="agent_id", type="integer", nullable=true)
*/
private $agentId;
/**
* @var int
*
* @ORM\Column(name="approximate_billing", type="integer", nullable=true)
*/
private $approximateBilling;
/**
* @var int
*
* @ORM\Column(name="team_id", type="integer", nullable=true)
*/
private $teamId;
/**
* @var string
*
* @ORM\Column(name="agent_two_id", type="string", nullable=true)
*/
private $agentTwoId;
/**
* @var int
*
* @ORM\Column(name="agent_commercial_id", type="integer", nullable=true)
*/
private $agencommercialId;
/**
* @var \DateTime
*
* @ORM\Column(name="date_proposed_at", type="datetime", nullable=true)
*/
private $dateProposedAt;
/**
* @var \DateTime
*
* @ORM\Column(name="date_event_star_at", type="datetime")
* @Assert\NotBlank()
*/
private $dateEventStarAt;
/**
* @var \DateTime
*
* @ORM\Column(name="date_event_end_at", type="datetime")
* @Assert\NotBlank()
*/
private $dateEventEndAt;
/**
* @var string
*
* @ORM\Column(name="days_email_reminder", type="string", length=255, nullable=true)
*/
private $daysEmailReminder;
/**
* @var string
*
* @ORM\Column(name="language", type="string", length=255)
* @Assert\NotBlank()
*/
private $language;
/**
* @var string
*
* @ORM\Column(name="include_logo", type="boolean")
*/
private $includeLogo;
/**
* @var string
*
* @ORM\Column(name="version_ppt", type="boolean")
*/
private $versionPpt;
/**
* @var string
*
* @ORM\Column(name="version_excel", type="boolean")
*/
private $versionExcel;
/**
* @var string
*
* @ORM\Column(name="version_flahs", type="boolean")
*/
private $versionFlahs;
/**
* @var string
*
* @ORM\Column(name="version_word", type="boolean")
*/
private $versionWord;
/**
* @var string
*
* @ORM\Column(name="briefing", type="text", nullable=true)
*/
private $briefing;
/**
* @var \DateTime
*
* @ORM\Column(name="date_presentation_at", type="datetime", nullable=true)
*/
private $datePresentationAt;
/**
* @var string
*
* @ORM\Column(name="status", type="string", length=255)
*/
private $status;
/**
* @var string
*
* @ORM\Column(name="sent", type="string", length=3, nullable=true)
*/
private $sent = 'no';
/**
* @var string
*
* @ORM\Column(name="select_type", type="string", nullable=true)
*/
private $selectType;
/**
* @var \DateTime
*
* @ORM\Column(name="created_at", type="datetime")
*/
private $createdAt;
/**
* @var int
*
* @ORM\Column(name="created_id", type="integer", nullable=true)
*/
private $createdId;
/**
* @var \DateTime
*
* @ORM\Column(name="updated_at", type="datetime")
*/
private $updatedAt;
/**
* @var int
*
* @ORM\Column(name="updated_id", type="integer", nullable=true)
*/
private $updatedId;
/**
* @var string
*
* @ORM\Column(name="access_key", type="string", length=255, nullable=true)
*/
private $accessKey;
/**
* @var \DateTime
*
* @ORM\Column(name="viewed_at", type="datetime", nullable=true)
*/
private $viewedAt;
/**
* @var string
*
* @ORM\Column(name="observation", type="text", nullable=true)
*/
private $observation;
/**
* @var string
*
* @ORM\Column(name="send_admin", type="string", length=255, nullable=true)
*/
private $sendAdmin;
/**
*@var boolean
*
*@ORM\Column(name="mcp", type="boolean", nullable=true)
*/
private $mcp = '0';
/**
* @var integer
*
* @ORM\Column(name="image", type="integer", nullable=true)
*/
private $image;
/**
* @var string
*
* @ORM\Column(name="category", type="string", length=255, nullable=true)
* @Assert\NotBlank()
*/
private $category;
/**
* @var int
*
* @ORM\Column(name="idMusic", type="integer", nullable=true)
*/
private $idMusic;
/**
* Get id
*
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* Set name
*
* @param string $name
*
* @return Proposal
*/
public function setName($name)
{
$this->name = $name;
return $this;
}
/**
* Get name
*
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Set title
*
* @param string $title
*
* @return Proposal
*/
public function setTitle($title)
{
$this->title = $title;
return $this;
}
/**
* Get title
*
* @return string
*/
public function getTitle()
{
return $this->title;
}
/**
* Set commission
*
* @param string $commission
*
* @return Proposal
*/
public function setCommission($commission)
{
$this->commission = $commission;
return $this;
}
/**
* Get commission
*
* @return string
*/
public function getCommission()
{
return $this->commission;
}
/**
* Set pax
*
* @param string $pax
*
* @return Proposal
*/
public function setPax($pax)
{
$this->pax = $pax;
return $this;
}
/**
* Get pax
*
* @return string
*/
public function getPax()
{
return $this->pax;
}
/**
* Set bedrooms
*
* @param string $bedrooms
*
* @return Proposal
*/
public function setBedrooms($bedrooms)
{
$this->bedrooms = $bedrooms;
return $this;
}
/**
* Get bedrooms
*
* @return string
*/
public function getBedrooms()
{
return $this->bedrooms;
}
/**
* Set officeId
*
* @param string $officeId
*
* @return Proposal
*/
public function setOfficeId($officeId)
{
$this->officeId = $officeId;
return $this;
}
/**
* Get officeId
*
* @return string
*/
public function getOfficeId()
{
return $this->officeId;
}
/**
* Set clientId
*
* @param integer $clientId
*
* @return Proposal
*/
public function setClientId($clientId)
{
$this->clientId = $clientId;
return $this;
}
/**
* Get clientId
*
* @return int
*/
public function getClientId()
{
return $this->clientId;
}
/**
* Set contactId
*
* @param integer $contactId
*
* @return Proposal
*/
public function setContactId($contactId)
{
$this->contactId = $contactId;
return $this;
}
/**
* Get contactId
*
* @return int
*/
public function getContactId()
{
return $this->contactId;
}
/**
* Set referenceName
*
* @param string $referenceName
*
* @return Proposal
*/
public function setReferenceName($referenceName)
{
$this->referenceName = $referenceName;
return $this;
}
/**
* Get referenceName
*
* @return string
*/
public function getReferenceName()
{
return $this->referenceName;
}
/**
* Set referenceId
*
* @param string $referenceId
*
* @return Proposal
*/
public function setReferenceId($referenceId)
{
$this->referenceId = $referenceId;
return $this;
}
/**
* Get referenceId
*
* @return string
*/
public function getReferenceId()
{
return $this->referenceId;
}
/**
* Set agentId
*
* @param integer $agentId
*
* @return Proposal
*/
public function setAgentId($agentId)
{
$this->agentId = $agentId;
return $this;
}
/**
* Get agentId
*
* @return int
*/
public function getAgentId()
{
return $this->agentId;
}
/**
* Set teamId
*
* @param integer $teamId
*
* @return Proposal
*/
public function setTeamId($teamId)
{
$this->teamId = $teamId;
return $this;
}
/**
* Get teamId
*
* @return int
*/
public function getTeamId()
{
return $this->teamId;
}
/**
* Set agentTwoId
*
* @param string $agentTwoId
*
* @return Proposal
*/
public function setAgentTwoId($agentTwoId)
{
$this->agentTwoId = $agentTwoId;
return $this;
}
/**
* Get agentTwoId
*
* @return string
*/
public function getAgentTwoId()
{
return $this->agentTwoId;
}
/**
* Set dateProposedAt
*
* @param \DateTime $dateProposedAt
*
* @return Proposal
*/
public function setDateProposedAt($dateProposedAt)
{
$this->dateProposedAt = $dateProposedAt;
return $this;
}
/**
* Get dateProposedAt
*
* @return \DateTime
*/
public function getDateProposedAt()
{
return $this->dateProposedAt;
}
/**
* Set dateEventStarAt
*
* @param \DateTime $dateEventStarAt
*
* @return Proposal
*/
public function setDateEventStarAt($dateEventStarAt)
{
$this->dateEventStarAt = $dateEventStarAt;
return $this;
}
/**
* Get dateEventStarAt
*
* @return \DateTime
*/
public function getDateEventStarAt()
{
return $this->dateEventStarAt;
}
/**
* Set dateEventEndAt
*
* @param \DateTime $dateEventEndAt
*
* @return Proposal
*/
public function setDateEventEndAt($dateEventEndAt)
{
$this->dateEventEndAt = $dateEventEndAt;
return $this;
}
/**
* Get dateEventEndAt
*
* @return \DateTime
*/
public function getDateEventEndAt()
{
return $this->dateEventEndAt;
}
/**
* Set daysEmailReminder
*
* @param string $daysEmailReminder
*
* @return Proposal
*/
public function setDaysEmailReminder($daysEmailReminder)
{
$this->daysEmailReminder = $daysEmailReminder;
return $this;
}
/**
* Get daysEmailReminder
*
* @return string
*/
public function getDaysEmailReminder()
{
return $this->daysEmailReminder;
}
/**
* Set language
*
* @param string $language
*
* @return Proposal
*/
public function setLanguage($language)
{
$this->language = $language;
return $this;
}
/**
* Get language
*
* @return string
*/
public function getLanguage()
{
return $this->language;
}
/**
* Set includeLogo
*
* @param boolean $includeLogo
*
* @return Proposal
*/
public function setIncludeLogo($includeLogo)
{
$this->includeLogo = $includeLogo;
return $this;
}
/**
* Get includeLogo
*
* @return boolean
*/
public function getIncludeLogo()
{
return $this->includeLogo;
}
/**
* Set versionPpt
*
* @param boolean $versionPpt
*
* @return Proposal
*/
public function setVersionPpt($versionPpt)
{
$this->versionPpt = $versionPpt;
return $this;
}
/**
* Get versionPpt
*
* @return boolean
*/
public function getVersionPpt()
{
return $this->versionPpt;
}
/**
* Set versionExcel
*
* @param boolean $versionExcel
*
* @return Proposal
*/
public function setVersionExcel($versionExcel)
{
$this->versionExcel = $versionExcel;
return $this;
}
/**
* Get versionExcel
*
* @return boolean
*/
public function getVersionExcel()
{
return $this->versionExcel;
}
/**
* Set versionFlahs
*
* @param boolean $versionFlahs
*
* @return Proposal
*/
public function setVersionFlahs($versionFlahs)
{
$this->versionFlahs = $versionFlahs;
return $this;
}
/**
* Get versionFlahs
*
* @return boolean
*/
public function getVersionFlahs()
{
return $this->versionFlahs;
}
/**
* Set versionWord
*
* @param boolean $versionWord
*
* @return Proposal
*/
public function setVersionWord($versionWord)
{
$this->versionWord = $versionWord;
return $this;
}
/**
* Get versionWord
*
* @return boolean
*/
public function getVersionWord()
{
return $this->versionWord;
}
/**
* Set briefing
*
* @param string $briefing
*
* @return Proposal
*/
public function setBriefing($briefing)
{
$this->briefing = $briefing;
return $this;
}
/**
* Get briefing
*
* @return string
*/
public function getBriefing()
{
return $this->briefing;
}
/**
* Set datePresentationAt
*
* @param \DateTime $datePresentationAt
*
* @return Proposal
*/
public function setDatePresentationAt($datePresentationAt)
{
$this->datePresentationAt = $datePresentationAt;
return $this;
}
/**
* Get datePresentationAt
*
* @return \DateTime
*/
public function getDatePresentationAt()
{
return $this->datePresentationAt;
}
/**
* Set status
*
* @param string $status
*
* @return Proposal
*/
public function setStatus($status)
{
$this->status = $status;
return $this;
}
/**
* Get status
*
* @return string
*/
public function getStatus()
{
return $this->status;
}
/**
* Set createdAt
*
* @param \DateTime $createdAt
*
* @return Proposal
*/
public function setCreatedAt(\Datetime $createdAt)
{
$this->createdAt = $createdAt;
return $this;
}
/**
* Get createdAt
*
* @return \DateTime
*/
public function getCreatedAt()
{
return $this->createdAt;
}
/**
* Set createdId
*
* @param integer $createdId
*
* @return Proposal
*/
public function setCreatedId($createdId)
{
$this->createdId = $createdId;
return $this;
}
/**
* Get createdId
*
* @return integer
*/
public function getCreatedId()
{
return $this->createdId;
}
/**
* Set updatedAt
*
* @param \DateTime $updatedAt
*
* @return Proposal
*/
public function setUpdatedAt(\Datetime $updatedAt)
{
$this->updatedAt = $updatedAt;
return $this;
}
/**
* Get updatedAt
*
* @return \DateTime
*/
public function getUpdatedAt()
{
return $this->updatedAt;
}
/**
* Set updatedId
*
* @param integer $updatedId
*
* @return Proposal
*/
public function setUpdatedId($updatedId)
{
$this->updatedId = $updatedId;
return $this;
}
/**
* Get updatedId
*
* @return integer
*/
public function getUpdatedId()
{
return $this->updatedId;
}
/**
* @ORM\PrePersist
*/
public function setCreatedAtValue()
{
$this->createdAt = new \Datetime();
}
/**
* @ORM\PrePersist
* @ORM\PreUpdate
*/
public function setUpdatedAtValue()
{
$this->updatedAt = new \Datetime();
}
/**
* Set agencommercialId
*
* @param integer $agencommercialId
*
* @return Proposal
*/
public function setAgencommercialId($agencommercialId)
{
$this->agencommercialId = $agencommercialId;
return $this;
}
/**
* Get agencommercialId
*
* @return integer
*/
public function getAgencommercialId()
{
return $this->agencommercialId;
}
/**
* Set accessKey
*
* @param string $accessKey
*
* @return Proposal
*/
public function setAccessKey($accessKey)
{
$this->accessKey = $accessKey;
return $this;
}
/**
* Get accessKey
*
* @return string
*/
public function getAccessKey()
{
return $this->accessKey;
}
/**
* Set viewedAt
*
* @param \DateTime $viewedAt
*
* @return Proposal
*/
public function setViewedAt($viewedAt)
{
$this->viewedAt = $viewedAt;
return $this;
}
/**
* Get viewedAt
*
* @return \DateTime
*/
public function getViewedAt()
{
return $this->viewedAt;
}
/**
* Set observation
*
* @param string $observation
*
* @return Proposal
*/
public function setObservation($observation)
{
$this->observation = $observation;
return $this;
}
/**
* Get observation
*
* @return string
*/
public function getObservation()
{
return $this->observation;
}
/**
* Set selectType
*
* @param string $selectType
*
* @return Proposal
*/
public function setSelectType($selectType)
{
$this->selectType = $selectType;
return $this;
}
/**
* Get selectType
*
* @return string
*/
public function getSelectType()
{
return $this->selectType;
}
/**
* Set sent
*
* @param string $sent
*
* @return Proposal
*/
public function setSent($sent)
{
$this->sent = $sent;
return $this;
}
/**
* Get sent
*
* @return string
*/
public function getSent()
{
return $this->sent;
}
/**
* Set mcp
*
* @param boolean $mcp
*
* @return Proposal
*/
public function setMcp($mcp)
{
$this->mcp = $mcp;
return $this;
}
/**
* Get mcp
*
* @return boolean
*/
public function getMcp()
{
return $this->mcp;
}
/**
* Set image
*
* @param integer $image
*
* @return Proposal
*/
public function setImage($image)
{
$this->image = $image;
return $this;
}
/**
* Get image
*
* @return integer
*/
public function getImage()
{
return $this->image;
}
/**
* Set sendAdmin
*
* @param string $sendAdmin
*
* @return Proposal
*/
public function setSendAdmin($sendAdmin)
{
$this->sendAdmin = $sendAdmin;
return $this;
}
/**
* Get sendAdmin
*
* @return string
*/
public function getSendAdmin()
{
return $this->sendAdmin;
}
/**
* Set category
*
* @param string $category
*
* @return Proposal
*/
public function setCategory($category)
{
$this->category = $category;
return $this;
}
/**
* Get category
*
* @return string
*/
public function getCategory()
{
return $this->category;
}
/**
* Set idMusic
*
* @param integer $idMusic
*
* @return Proposal
*/
public function setIdMusic($idMusic)
{
$this->idMusic = $idMusic;
return $this;
}
/**
* Get idMusic
*
* @return integer
*/
public function getIdMusic()
{
return $this->idMusic;
}
/**
* Set approximateBilling
*
* @param integer $approximateBilling
*
* @return Proposal
*/
public function setApproximateBilling($approximateBilling)
{
$this->approximateBilling = $approximateBilling;
return $this;
}
/**
* Get approximateBilling
*
* @return integer
*/
public function getApproximateBilling()
{
return $this->approximateBilling;
}
/**
* @ORM\PrePersist
*/
public function setDateProposedAtValue()
{
$this->dateProposedAt = new \Datetime();
}
}