<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
/**
* @ORM\Table(name="interlands.reserve")
* @ORM\Entity(repositoryClass="App\Repository\ReserveRepository")
*/
class Reserve
{
/**
* @var integer
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @var string
*
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $file_id;
/**
* @var string
*
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $ycix_user_id;
/**
* @var string
*
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $ycix_user_company_id;
/**
* @var string
*
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $reservation_type;
/**
* @var integer
*
* @ORM\Column(type="string", length=50, nullable=true)
*/
private $channel_reference_code;
/**
* @var integer
*
* @ORM\Column(type="string", length=50, nullable=true)
*/
private $client_reference_code;
/**
* @var integer
*
* @ORM\Column(type="string", length=50, nullable=true)
*/
private $internal_reference_code;
/**
* @var string
*
* @ORM\Column(type="string", length=5000, nullable=true)
*/
private $raw_data;
/**
* @var string
*
* @ORM\Column(type="datetime", nullable=true)
*/
private $created;
/**
* @var string
*
* @ORM\Column(type="datetime", nullable=true)
*/
private $updated;
/**
* @ORM\OneToMany(targetEntity="App\Entity\ReserveDetail", mappedBy="reserve")
* @ORM\OrderBy({"date_from" = "DESC"})
*/
private $details;
/**
* @var string
*
* @ORM\Column(type="datetime", nullable=true)
*/
private $prepay_expire_date;
/**
* @var decimal
*
* @ORM\Column(type="decimal", scale=2, nullable=true)
*/
private $total_sale;
/**
* @var decimal
*
* @ORM\Column(type="decimal", scale=2, nullable=true)
*/
private $total_cost;
/**
* @var string
*
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $ycix_user_name;
/**
* @var string
*
* @ORM\Column(type="string", length=1000, nullable=true)
*/
private $ycix_user_email;
/**
* @var string
*
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $ycix_user_company_name;
/**
* @var string
*
* @ORM\Column(type="string", length=1000, nullable=true)
*/
private $ycix_user_company_email;
/**
* @var string
*
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $source;
/**
* @var boolean
*
* @ORM\Column(type="boolean", nullable=true)
*/
private $follow_up;
/**
* @var string
*
* @ORM\Column(type="string", length=5000, nullable=true)
*/
private $note;
/**
* @var string
*
* @ORM\Column(type="string", length=10, nullable=true)
*/
private $env;
/**
* @var boolean
*
* @ORM\Column(type="boolean", nullable=true)
*/
private $verified;
/**
* @var string
*
* @ORM\Column(type="string", length=2000, nullable=true)
*/
private $cancellation_policies;
/**
* @var string
*
* @ORM\Column(type="text", nullable=true)
*/
private $json_service;
/**
* @ORM\Column(type="decimal", scale=2, nullable=true)
*/
protected $markup;
/**
* @var string
*
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $token;
/**
* Constructor
*/
public function __construct()
{
$now = new \Datetime('now');
$this->created = $now;
$this->updated = $now;
$this->verified = false;
}
/**
* Get id
*
* @return integer
*/
public function getId()
{
return $this->id;
}
/**
* Set file_id
*
* @return Reserve
*/
public function setFileId($file_id)
{
$this->file_id = $file_id;
return $this;
}
/**
* Get file_id
*/
public function getFileId()
{
return $this->file_id;
}
/**
* Set ycix_user_id
*
* @return Reserve
*/
public function setYcixUserId($ycix_user_id)
{
$this->ycix_user_id = $ycix_user_id;
return $this;
}
/**
* Get ycix_user_id
*/
public function getYcixUserId()
{
return $this->ycix_user_id;
}
/**
* Set ycix_user_company_id
*
* @return Reserve
*/
public function setYcixUserCompanyId($ycix_user_company_id)
{
$this->ycix_user_company_id = $ycix_user_company_id;
return $this;
}
/**
* Get ycix_user_company_id
*/
public function getYcixUserCompanyId()
{
return $this->ycix_user_company_id;
}
/**
* Set reservation_type
*
* @return Reserve
*/
public function setReservationType($reservation_type)
{
$this->reservation_type = $reservation_type;
return $this;
}
/**
* Get reservation_type
*/
public function getReservationType()
{
return $this->reservation_type;
}
/**
* Set channel_reference_code
*
* @return Reserve
*/
public function setChannelReferenceCode($channel_reference_code)
{
$this->channel_reference_code = $channel_reference_code;
return $this;
}
/**
* Get channel_reference_code
*/
public function getChannelReferenceCode()
{
return $this->channel_reference_code;
}
/**
* Set client_reference_code
*
* @return Reserve
*/
public function setClientReferenceCode($client_reference_code)
{
$this->client_reference_code = $client_reference_code;
return $this;
}
/**
* Get client_reference_code
*/
public function getClientReferenceCode()
{
return $this->client_reference_code;
}
/**
* Set internal_reference_code
*
* @return Reserve
*/
public function setInternalReferenceCode($internal_reference_code)
{
$this->internal_reference_code = $internal_reference_code;
return $this;
}
/**
* Get internal_reference_code
*/
public function getInternalReferenceCode()
{
return $this->internal_reference_code;
}
/**
* Set created
*
* @param \DateTime $created
*
* @return Reserve
*/
public function setCreated($created)
{
$this->created = $created;
return $this;
}
/**
* Get created
*
* @return \DateTime
*/
public function getCreated()
{
return $this->created;
}
/**
* Set updated
*
* @param \DateTime $updated
*
* @return Reserve
*/
public function setUpdated($updated)
{
$this->updated = $updated;
return $this;
}
/**
* Get updated
*
* @return \DateTime
*/
public function getUpdated()
{
return $this->updated;
}
/**
* Set prepay_expire_date
*
* @param \DateTime $prepay_expire_date
*
* @return Reserve
*/
public function setPrepayExpireDate($prepay_expire_date)
{
$this->prepay_expire_date = $prepay_expire_date;
return $this;
}
/**
* Get prepay_expire_date
*
* @return \DateTime
*/
public function getPrepayExpireDate()
{
return $this->prepay_expire_date;
}
/**
* Add details
*
* @return Reserve
*/
public function addDetails($details)
{
$this->details[] = $details;
return $this;
}
/**
* Remove details
*/
public function removeDetails($details)
{
$this->details->removeElement($details);
}
/**
* Get details
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getDetails()
{
return $this->details;
}
/**
* Set total_sale
*
* @param decimal $total_sale
*
* @return Reserve
*/
public function setTotalSale($total_sale)
{
$this->total_sale = $total_sale;
return $this;
}
/**
* Get total_sale
*
* @return decimal
*/
public function getTotalSale()
{
return $this->total_sale;
}
/**
* Set total_cost
*
* @param decimal $total_cost
*
* @return Reserve
*/
public function setTotalCost($total_cost)
{
$this->total_cost = $total_cost;
return $this;
}
/**
* Get total_cost
*
* @return decimal
*/
public function getTotalCost()
{
return $this->total_cost;
}
/**
* Set ycix_user_name
*
* @return Reserve
*/
public function setYcixUserName($ycix_user_name)
{
$this->ycix_user_name = $ycix_user_name;
return $this;
}
/**
* Get ycix_user_name
*/
public function getYcixUserName()
{
return $this->ycix_user_name;
}
/**
* Set ycix_user_email
*
* @return Reserve
*/
public function setYcixUserEmail($ycix_user_email)
{
$this->ycix_user_email = $ycix_user_email;
return $this;
}
/**
* Get ycix_user_email
*/
public function getYcixUserEmail()
{
return $this->ycix_user_email;
}
/**
* Set ycix_user_company_name
*
* @return Reserve
*/
public function setYcixUserCompanyName($ycix_user_company_name)
{
$this->ycix_user_company_name = $ycix_user_company_name;
return $this;
}
/**
* Get ycix_user_company_name
*/
public function getYcixUserCompanyName()
{
return $this->ycix_user_company_name;
}
/**
* Set ycix_user_company_email
*
* @return Reserve
*/
public function setYcixUserCompanyEmail($ycix_user_company_email)
{
$this->ycix_user_company_email = $ycix_user_company_email;
return $this;
}
/**
* Get ycix_user_company_email
*/
public function getYcixUserCompanyEmail()
{
return $this->ycix_user_company_email;
}
/**
* Set source
*
* @return Reserve
*/
public function setSource($source)
{
$this->source = $source;
return $this;
}
/**
* Get source
*/
public function getSource()
{
return $this->source;
}
public function getFollowUp()
{
return $this->follow_up;
}
public function setFollowUp($follow_up): self
{
$this->follow_up = $follow_up;
return $this;
}
public function getNote()
{
return $this->note;
}
public function setNote($note): self
{
$this->note = $note;
return $this;
}
/**
* Set env
*
* @return Reserve
*/
public function setEnv($env)
{
$this->env = $env;
return $this;
}
/**
* Get env
*/
public function getEnv()
{
return $this->env;
}
public function getVerified()
{
return $this->verified;
}
public function setVerified($verified): self
{
$this->verified = $verified;
return $this;
}
/**
* Set cancellation_policies
*
* @return Reserve
*/
public function setCancellationPolicies($cancellation_policies)
{
$this->cancellation_policies = $cancellation_policies;
return $this;
}
/**
* Get cancellation_policies
*/
public function getCancellationPolicies()
{
return $this->cancellation_policies;
}
/**
* Set json_service
*
* @param string $json_service
*
* @return Reserve
*/
public function setJsonService($json_service)
{
$this->json_service = $json_service;
return $this;
}
/**
* Get json_service
*
* @return string
*/
public function getJsonService()
{
return $this->json_service;
}
/**
* Set markup
*/
public function setMarkup($markup)
{
$this->markup = $markup;
return $this;
}
/**
* Get markup
*/
public function getMarkup()
{
return $this->markup;
}
/**
* Set token
*/
public function setToken($token)
{
$this->token = $token;
return $this;
}
/**
* Get token
*/
public function getToken()
{
return $this->token;
}
}