src/Entity/Reserve.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Symfony\Component\Validator\Constraints as Assert;
  5. /**
  6.  * @ORM\Table(name="interlands.reserve")
  7.  * @ORM\Entity(repositoryClass="App\Repository\ReserveRepository")
  8.  */
  9. class Reserve
  10. {  
  11.     /**
  12.      * @var integer
  13.      *
  14.      * @ORM\Column(name="id", type="integer")
  15.      * @ORM\Id
  16.      * @ORM\GeneratedValue(strategy="AUTO")
  17.      */
  18.     private $id;
  19.     /**
  20.      * @var string
  21.      * 
  22.      * @ORM\Column(type="string", length=255, nullable=true)
  23.      */
  24.     private $file_id;
  25.     /**
  26.      * @var string
  27.      * 
  28.      * @ORM\Column(type="string", length=255, nullable=true)
  29.      */
  30.     private $ycix_user_id;
  31.     /**
  32.      * @var string
  33.      * 
  34.      * @ORM\Column(type="string", length=255, nullable=true)
  35.      */
  36.     private $ycix_user_company_id;
  37.     /**
  38.      * @var string
  39.      * 
  40.      * @ORM\Column(type="string", length=255, nullable=true)
  41.      */
  42.     private $reservation_type;
  43.     /**
  44.      * @var integer
  45.      * 
  46.      * @ORM\Column(type="string", length=50, nullable=true)
  47.      */
  48.     private $channel_reference_code;
  49.     /**
  50.      * @var integer
  51.      * 
  52.      * @ORM\Column(type="string", length=50, nullable=true)
  53.      */
  54.     private $client_reference_code;
  55.     /**
  56.      * @var integer
  57.      * 
  58.      * @ORM\Column(type="string", length=50, nullable=true)
  59.      */
  60.     private $internal_reference_code;
  61.     /**
  62.      * @var string
  63.      * 
  64.      * @ORM\Column(type="string", length=5000, nullable=true)
  65.      */
  66.     private $raw_data;
  67.     /**
  68.      * @var string
  69.      * 
  70.      * @ORM\Column(type="datetime", nullable=true)
  71.      */
  72.     private $created;
  73.     /**
  74.      * @var string
  75.      * 
  76.      * @ORM\Column(type="datetime", nullable=true)
  77.      */
  78.     private $updated;
  79.     /**
  80.      * @ORM\OneToMany(targetEntity="App\Entity\ReserveDetail", mappedBy="reserve")
  81.      * @ORM\OrderBy({"date_from" = "DESC"})
  82.      */
  83.     private $details;
  84.     /**
  85.      * @var string
  86.      * 
  87.      * @ORM\Column(type="datetime", nullable=true)
  88.      */
  89.     private $prepay_expire_date;
  90.     /**
  91.      * @var decimal
  92.      * 
  93.      * @ORM\Column(type="decimal", scale=2, nullable=true)
  94.      */
  95.     private $total_sale;
  96.     /**
  97.      * @var decimal
  98.      * 
  99.      * @ORM\Column(type="decimal", scale=2, nullable=true)
  100.      */
  101.     private $total_cost;
  102.     /**
  103.      * @var string
  104.      * 
  105.      * @ORM\Column(type="string", length=255, nullable=true)
  106.      */
  107.     private $ycix_user_name;
  108.     /**
  109.      * @var string
  110.      * 
  111.      * @ORM\Column(type="string", length=1000, nullable=true)
  112.      */
  113.     private $ycix_user_email;
  114.     /**
  115.      * @var string
  116.      * 
  117.      * @ORM\Column(type="string", length=255, nullable=true)
  118.      */
  119.     private $ycix_user_company_name;
  120.     /**
  121.      * @var string
  122.      * 
  123.      * @ORM\Column(type="string", length=1000, nullable=true)
  124.      */
  125.     private $ycix_user_company_email;
  126.     /**
  127.      * @var string
  128.      * 
  129.      * @ORM\Column(type="string", length=255, nullable=true)
  130.      */
  131.     private $source;
  132.     /**
  133.      * @var boolean
  134.      * 
  135.      * @ORM\Column(type="boolean", nullable=true)
  136.      */
  137.     private $follow_up;
  138.     /**
  139.      * @var string
  140.      * 
  141.      * @ORM\Column(type="string", length=5000, nullable=true)
  142.      */
  143.     private $note;
  144.     /**
  145.      * @var string
  146.      * 
  147.      * @ORM\Column(type="string", length=10, nullable=true)
  148.      */
  149.     private $env;
  150.     /**
  151.      * @var boolean
  152.      * 
  153.      * @ORM\Column(type="boolean", nullable=true)
  154.      */
  155.     private $verified;
  156.     /**
  157.      * @var string
  158.      * 
  159.      * @ORM\Column(type="string", length=2000, nullable=true)
  160.      */
  161.     private $cancellation_policies;
  162.     /**
  163.      * @var string
  164.      * 
  165.      * @ORM\Column(type="text", nullable=true)
  166.      */
  167.     private $json_service;
  168.     /**
  169.      * @ORM\Column(type="decimal", scale=2, nullable=true)
  170.      */
  171.     protected $markup;
  172.     /**
  173.      * @var string
  174.      * 
  175.      * @ORM\Column(type="string", length=255, nullable=true)
  176.      */
  177.     private $token;
  178.     /**
  179.      * Constructor
  180.      */
  181.     public function __construct()
  182.     {
  183.         $now = new \Datetime('now');
  184.         $this->created $now;
  185.         $this->updated $now;
  186.         $this->verified false;
  187.     }
  188.     /**
  189.      * Get id
  190.      *
  191.      * @return integer 
  192.      */
  193.     public function getId()
  194.     {
  195.         return $this->id;
  196.     }
  197.     /**
  198.      * Set file_id
  199.      *
  200.      * @return Reserve
  201.      */
  202.     public function setFileId($file_id)
  203.     {
  204.         $this->file_id $file_id;
  205.         return $this;
  206.     }
  207.     /**
  208.      * Get file_id
  209.      */
  210.     public function getFileId()
  211.     {
  212.         return $this->file_id;
  213.     }
  214.     /**
  215.      * Set ycix_user_id
  216.      *
  217.      * @return Reserve
  218.      */
  219.     public function setYcixUserId($ycix_user_id)
  220.     {
  221.         $this->ycix_user_id $ycix_user_id;
  222.         return $this;
  223.     }
  224.     /**
  225.      * Get ycix_user_id
  226.      */
  227.     public function getYcixUserId()
  228.     {
  229.         return $this->ycix_user_id;
  230.     }
  231.     /**
  232.      * Set ycix_user_company_id
  233.      *
  234.      * @return Reserve
  235.      */
  236.     public function setYcixUserCompanyId($ycix_user_company_id)
  237.     {
  238.         $this->ycix_user_company_id $ycix_user_company_id;
  239.         return $this;
  240.     }
  241.     /**
  242.      * Get ycix_user_company_id
  243.      */
  244.     public function getYcixUserCompanyId()
  245.     {
  246.         return $this->ycix_user_company_id;
  247.     }
  248.     /**
  249.      * Set reservation_type
  250.      *
  251.      * @return Reserve
  252.      */
  253.     public function setReservationType($reservation_type)
  254.     {
  255.         $this->reservation_type $reservation_type;
  256.         return $this;
  257.     }
  258.     /**
  259.      * Get reservation_type
  260.      */
  261.     public function getReservationType()
  262.     {
  263.         return $this->reservation_type;
  264.     }
  265.     /**
  266.      * Set channel_reference_code
  267.      *
  268.      * @return Reserve
  269.      */
  270.     public function setChannelReferenceCode($channel_reference_code)
  271.     {
  272.         $this->channel_reference_code $channel_reference_code;
  273.         return $this;
  274.     }
  275.     /**
  276.      * Get channel_reference_code
  277.      */
  278.     public function getChannelReferenceCode()
  279.     {
  280.         return $this->channel_reference_code;
  281.     }
  282.     /**
  283.      * Set client_reference_code
  284.      *
  285.      * @return Reserve
  286.      */
  287.     public function setClientReferenceCode($client_reference_code)
  288.     {
  289.         $this->client_reference_code $client_reference_code;
  290.         return $this;
  291.     }
  292.     /**
  293.      * Get client_reference_code
  294.      */
  295.     public function getClientReferenceCode()
  296.     {
  297.         return $this->client_reference_code;
  298.     }
  299.     /**
  300.      * Set internal_reference_code
  301.      *
  302.      * @return Reserve
  303.      */
  304.     public function setInternalReferenceCode($internal_reference_code)
  305.     {
  306.         $this->internal_reference_code $internal_reference_code;
  307.         return $this;
  308.     }
  309.     /**
  310.      * Get internal_reference_code
  311.      */
  312.     public function getInternalReferenceCode()
  313.     {
  314.         return $this->internal_reference_code;
  315.     }
  316.     /**
  317.      * Set created
  318.      *
  319.      * @param \DateTime $created
  320.      *
  321.      * @return Reserve
  322.      */
  323.     public function setCreated($created)
  324.     {
  325.         $this->created $created;
  326.         return $this;
  327.     }
  328.     /**
  329.      * Get created
  330.      *
  331.      * @return \DateTime
  332.      */
  333.     public function getCreated()
  334.     {
  335.         return $this->created;
  336.     }
  337.     /**
  338.      * Set updated
  339.      *
  340.      * @param \DateTime $updated
  341.      *
  342.      * @return Reserve
  343.      */
  344.     public function setUpdated($updated)
  345.     {
  346.         $this->updated $updated;
  347.         return $this;
  348.     }
  349.     /**
  350.      * Get updated
  351.      *
  352.      * @return \DateTime
  353.      */
  354.     public function getUpdated()
  355.     {
  356.         return $this->updated;
  357.     }
  358.     /**
  359.      * Set prepay_expire_date
  360.      *
  361.      * @param \DateTime $prepay_expire_date
  362.      *
  363.      * @return Reserve
  364.      */
  365.     public function setPrepayExpireDate($prepay_expire_date)
  366.     {
  367.         $this->prepay_expire_date $prepay_expire_date;
  368.         return $this;
  369.     }
  370.     /**
  371.      * Get prepay_expire_date
  372.      *
  373.      * @return \DateTime
  374.      */
  375.     public function getPrepayExpireDate()
  376.     {
  377.         return $this->prepay_expire_date;
  378.     }
  379.     /**
  380.      * Add details
  381.      *
  382.      * @return Reserve
  383.      */
  384.     public function addDetails($details)
  385.     {
  386.         $this->details[] = $details;
  387.         return $this;
  388.     }
  389.     /**
  390.      * Remove details
  391.      */
  392.     public function removeDetails($details)
  393.     {
  394.         $this->details->removeElement($details);
  395.     }
  396.     /**
  397.      * Get details
  398.      *
  399.      * @return \Doctrine\Common\Collections\Collection 
  400.      */
  401.     public function getDetails()
  402.     {
  403.         return $this->details;
  404.     }
  405.     /**
  406.      * Set total_sale
  407.      *
  408.      * @param decimal $total_sale
  409.      *
  410.      * @return Reserve
  411.      */
  412.     public function setTotalSale($total_sale)
  413.     {
  414.         $this->total_sale $total_sale;
  415.         return $this;
  416.     }
  417.     /**
  418.      * Get total_sale
  419.      *
  420.      * @return decimal
  421.      */
  422.     public function getTotalSale()
  423.     {
  424.         return $this->total_sale;
  425.     }
  426.     /**
  427.      * Set total_cost
  428.      *
  429.      * @param decimal $total_cost
  430.      *
  431.      * @return Reserve
  432.      */
  433.     public function setTotalCost($total_cost)
  434.     {
  435.         $this->total_cost $total_cost;
  436.         return $this;
  437.     }
  438.     /**
  439.      * Get total_cost
  440.      *
  441.      * @return decimal
  442.      */
  443.     public function getTotalCost()
  444.     {
  445.         return $this->total_cost;
  446.     }
  447.     /**
  448.      * Set ycix_user_name
  449.      *
  450.      * @return Reserve
  451.      */
  452.     public function setYcixUserName($ycix_user_name)
  453.     {
  454.         $this->ycix_user_name $ycix_user_name;
  455.         return $this;
  456.     }
  457.     /**
  458.      * Get ycix_user_name
  459.      */
  460.     public function getYcixUserName()
  461.     {
  462.         return $this->ycix_user_name;
  463.     }
  464.     /**
  465.      * Set ycix_user_email
  466.      *
  467.      * @return Reserve
  468.      */
  469.     public function setYcixUserEmail($ycix_user_email)
  470.     {
  471.         $this->ycix_user_email $ycix_user_email;
  472.         return $this;
  473.     }
  474.     /**
  475.      * Get ycix_user_email
  476.      */
  477.     public function getYcixUserEmail()
  478.     {
  479.         return $this->ycix_user_email;
  480.     }
  481.     /**
  482.      * Set ycix_user_company_name
  483.      *
  484.      * @return Reserve
  485.      */
  486.     public function setYcixUserCompanyName($ycix_user_company_name)
  487.     {
  488.         $this->ycix_user_company_name $ycix_user_company_name;
  489.         return $this;
  490.     }
  491.     /**
  492.      * Get ycix_user_company_name
  493.      */
  494.     public function getYcixUserCompanyName()
  495.     {
  496.         return $this->ycix_user_company_name;
  497.     }
  498.     /**
  499.      * Set ycix_user_company_email
  500.      *
  501.      * @return Reserve
  502.      */
  503.     public function setYcixUserCompanyEmail($ycix_user_company_email)
  504.     {
  505.         $this->ycix_user_company_email $ycix_user_company_email;
  506.         return $this;
  507.     }
  508.     /**
  509.      * Get ycix_user_company_email
  510.      */
  511.     public function getYcixUserCompanyEmail()
  512.     {
  513.         return $this->ycix_user_company_email;
  514.     }
  515.     /**
  516.      * Set source
  517.      *
  518.      * @return Reserve
  519.      */
  520.     public function setSource($source)
  521.     {
  522.         $this->source $source;
  523.         return $this;
  524.     }
  525.     /**
  526.      * Get source
  527.      */
  528.     public function getSource()
  529.     {
  530.         return $this->source;
  531.     }
  532.     public function getFollowUp()
  533.     {
  534.         return $this->follow_up;
  535.     }
  536.     public function setFollowUp($follow_up): self
  537.     {
  538.         $this->follow_up $follow_up;
  539.         return $this;
  540.     }
  541.     public function getNote()
  542.     {
  543.         return $this->note;
  544.     }
  545.     public function setNote($note): self
  546.     {
  547.         $this->note $note;
  548.         return $this;
  549.     }
  550.     /**
  551.      * Set env
  552.      *
  553.      * @return Reserve
  554.      */
  555.     public function setEnv($env)
  556.     {
  557.         $this->env $env;
  558.         return $this;
  559.     }
  560.     /**
  561.      * Get env
  562.      */
  563.     public function getEnv()
  564.     {
  565.         return $this->env;
  566.     }
  567.     public function getVerified()
  568.     {
  569.         return $this->verified;
  570.     }
  571.     public function setVerified($verified): self
  572.     {
  573.         $this->verified $verified;
  574.         return $this;
  575.     }
  576.     /**
  577.      * Set cancellation_policies
  578.      *
  579.      * @return Reserve
  580.      */
  581.     public function setCancellationPolicies($cancellation_policies)
  582.     {
  583.         $this->cancellation_policies $cancellation_policies;
  584.         return $this;
  585.     }
  586.     /**
  587.      * Get cancellation_policies
  588.      */
  589.     public function getCancellationPolicies()
  590.     {
  591.         return $this->cancellation_policies;
  592.     }
  593.     /**
  594.      * Set json_service
  595.      *
  596.      * @param string $json_service
  597.      *
  598.      * @return Reserve
  599.      */
  600.     public function setJsonService($json_service)
  601.     {
  602.         $this->json_service $json_service;
  603.         return $this;
  604.     }
  605.     /**
  606.      * Get json_service
  607.      *
  608.      * @return string
  609.      */
  610.     public function getJsonService()
  611.     {
  612.         return $this->json_service;
  613.     }
  614.     /**
  615.      * Set markup
  616.      */
  617.     public function setMarkup($markup)
  618.     {
  619.         $this->markup $markup;
  620.     
  621.         return $this;
  622.     }
  623.     /**
  624.      * Get markup
  625.      */
  626.     public function getMarkup()
  627.     {
  628.         return $this->markup;
  629.     }
  630.     /**
  631.      * Set token
  632.      */
  633.     public function setToken($token)
  634.     {
  635.         $this->token $token;
  636.     
  637.         return $this;
  638.     }
  639.     /**
  640.      * Get token
  641.      */
  642.     public function getToken()
  643.     {
  644.         return $this->token;
  645.     }
  646. }