446 lines
7.9 KiB
PHP
446 lines
7.9 KiB
PHP
<?php
|
|
|
|
namespace AppBundle\Entity;
|
|
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
|
|
/**
|
|
* TravelCountry
|
|
*
|
|
* @ORM\Table(name="travel_country", indexes={@ORM\Index(name="FK_travel_country_page", columns={"feedback_page_id"})})
|
|
* @ORM\Entity(repositoryClass="AppBundle\Entity\TravelCountryRepository")
|
|
*/
|
|
|
|
class TravelCountry
|
|
{
|
|
/**
|
|
* @var string
|
|
*
|
|
* @ORM\Column(name="name", type="string", length=255, nullable=true)
|
|
*/
|
|
private $name;
|
|
|
|
/**
|
|
* @var string
|
|
*
|
|
* @ORM\Column(name="slug", type="string", length=255, nullable=true)
|
|
*/
|
|
private $slug;
|
|
|
|
|
|
/**
|
|
* @var string
|
|
*
|
|
* @ORM\Column(name="destco", type="string", length=40, nullable=true)
|
|
*/
|
|
private $destco;
|
|
|
|
/**
|
|
* @var string
|
|
*
|
|
* @ORM\Column(name="text_before", type="string", length=255, nullable=true)
|
|
*/
|
|
private $text_before;
|
|
|
|
/**
|
|
* @var string
|
|
*
|
|
* @ORM\Column(name="text_after", type="string", length=255, nullable=true)
|
|
*/
|
|
private $text_after;
|
|
|
|
/**
|
|
* @var string
|
|
*
|
|
* @ORM\Column(name="html_information", type="text", length=65535, nullable=false)
|
|
*/
|
|
private $htmlInformation;
|
|
|
|
/**
|
|
* @var string
|
|
*
|
|
* @ORM\Column(name="entry_requirements", type="text", length=65535, nullable=false)
|
|
*/
|
|
private $entryRequirements;
|
|
|
|
/**
|
|
* @var integer
|
|
*
|
|
* @ORM\Column(name="id", type="integer")
|
|
* @ORM\Id
|
|
* @ORM\GeneratedValue(strategy="IDENTITY")
|
|
*/
|
|
private $id;
|
|
|
|
/**
|
|
* @var integer
|
|
*
|
|
* @ORM\Column(name="crm_id", type="integer")
|
|
*/
|
|
private $crmId;
|
|
|
|
/**
|
|
* @var boolean
|
|
*
|
|
* @ORM\Column(name="active_frontend", type="boolean", nullable=false)
|
|
*/
|
|
private $active_frontend;
|
|
|
|
|
|
|
|
/**
|
|
* @var \AppBundle\Entity\Page
|
|
*
|
|
* @ORM\ManyToOne(targetEntity="AppBundle\Entity\Page")
|
|
* @ORM\JoinColumns({
|
|
* @ORM\JoinColumn(name="feedback_page_id", referencedColumnName="id")
|
|
* })
|
|
*/
|
|
private $feedbackPage;
|
|
|
|
/**
|
|
* @ORM\ManyToMany(targetEntity="AppBundle\Entity\TravelProgram", mappedBy="countries")
|
|
*/
|
|
private $programs;
|
|
|
|
/**
|
|
* @ORM\OneToMany(targetEntity="AppBundle\Entity\TravelDestination", mappedBy="country")
|
|
*/
|
|
private $destinations;
|
|
|
|
|
|
|
|
/**
|
|
* Set name
|
|
*
|
|
* @param string $crmId
|
|
*
|
|
* @return TravelCountry
|
|
*/
|
|
public function setCrmId($crmId)
|
|
{
|
|
$this->crmId = $crmId;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get crmId
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getCrmId()
|
|
{
|
|
return $this->crmId;
|
|
}
|
|
|
|
/**
|
|
* Set name
|
|
*
|
|
* @param string $name
|
|
*
|
|
* @return TravelCountry
|
|
*/
|
|
public function setName($name)
|
|
{
|
|
$this->name = $name;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get name
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getName()
|
|
{
|
|
return $this->name;
|
|
}
|
|
|
|
|
|
/**
|
|
* Set slug
|
|
*
|
|
* @param string $slug
|
|
*
|
|
* @return TravelCountry
|
|
*/
|
|
public function setSlug($slug)
|
|
{
|
|
$this->slug = $slug;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get slug
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getSlug()
|
|
{
|
|
return $this->slug;
|
|
}
|
|
|
|
/**
|
|
* Set destco
|
|
*
|
|
* @param string $destco
|
|
*
|
|
* @return TravelCountry
|
|
*/
|
|
public function setDestco($destco)
|
|
{
|
|
$this->destco = $destco;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get destco
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getDestco()
|
|
{
|
|
return $this->destco;
|
|
}
|
|
|
|
/**
|
|
* Set text_before
|
|
*
|
|
* @param string $text_before
|
|
*
|
|
* @return TravelCountry
|
|
*/
|
|
public function setTextBefore($text_before)
|
|
{
|
|
$this->text_before = $text_before;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get text_before
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getTextBefore()
|
|
{
|
|
return $this->text_before;
|
|
}
|
|
|
|
/**
|
|
* Set text_after
|
|
*
|
|
* @param string $text_after
|
|
*
|
|
* @return TravelCountry
|
|
*/
|
|
public function setTextAfter($text_after)
|
|
{
|
|
$this->text_after = $text_after;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get text_after
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getTextAfter()
|
|
{
|
|
return $this->text_after;
|
|
}
|
|
|
|
|
|
/**
|
|
* Set htmlInformation
|
|
*
|
|
* @param string $htmlInformation
|
|
*
|
|
* @return TravelCountry
|
|
*/
|
|
public function setHtmlInformation($htmlInformation)
|
|
{
|
|
$this->htmlInformation = $htmlInformation;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get htmlInformation
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getHtmlInformation()
|
|
{
|
|
return $this->htmlInformation;
|
|
}
|
|
|
|
/**
|
|
* Set entryRequirements
|
|
*
|
|
* @param string $entryRequirements
|
|
*
|
|
* @return TravelCountry
|
|
*/
|
|
public function setEntryRequirements($entryRequirements)
|
|
{
|
|
$this->entryRequirements = $entryRequirements;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get entryRequirements
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getEntryRequirements()
|
|
{
|
|
return $this->entryRequirements;
|
|
}
|
|
|
|
/**
|
|
* Get id
|
|
*
|
|
* @return integer
|
|
*/
|
|
public function getId()
|
|
{
|
|
return $this->id;
|
|
}
|
|
|
|
/**
|
|
* Set active_frontend
|
|
*
|
|
* @param boolean $active_frontend
|
|
*
|
|
* @return TravelClass
|
|
*/
|
|
public function setActiveFrontend($active_frontend)
|
|
{
|
|
$this->active_frontend = $active_frontend;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get active_frontend
|
|
*
|
|
* @return boolean
|
|
*/
|
|
public function getActiveFrontend()
|
|
{
|
|
return $this->active_frontend;
|
|
}
|
|
|
|
|
|
/**
|
|
* Set feedbackPage
|
|
*
|
|
* @param \AppBundle\Entity\Page $feedbackPage
|
|
*
|
|
* @return TravelCountry
|
|
*/
|
|
public function setFeedbackPage(\AppBundle\Entity\Page $feedbackPage = null)
|
|
{
|
|
$this->feedbackPage = $feedbackPage;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get feedbackPage
|
|
*
|
|
* @return \AppBundle\Entity\Page
|
|
*/
|
|
public function getFeedbackPage()
|
|
{
|
|
return $this->feedbackPage;
|
|
}
|
|
/**
|
|
* Constructor
|
|
*/
|
|
public function __construct()
|
|
{
|
|
$this->programs = new \Doctrine\Common\Collections\ArrayCollection();
|
|
}
|
|
|
|
/**
|
|
* Add program
|
|
*
|
|
* @param \AppBundle\Entity\TravelProgram $program
|
|
*
|
|
* @return TravelCountry
|
|
*/
|
|
public function addProgram(\AppBundle\Entity\TravelProgram $program)
|
|
{
|
|
$this->programs[] = $program;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Remove program
|
|
*
|
|
* @param \AppBundle\Entity\TravelProgram $program
|
|
*/
|
|
public function removeProgram(\AppBundle\Entity\TravelProgram $program)
|
|
{
|
|
$this->programs->removeElement($program);
|
|
}
|
|
|
|
/**
|
|
* Get programs
|
|
*
|
|
* @return \Doctrine\Common\Collections\Collection
|
|
*/
|
|
public function getPrograms()
|
|
{
|
|
return $this->programs;
|
|
}
|
|
|
|
function __toString()
|
|
{
|
|
return $this->name;
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
* Add destination
|
|
*
|
|
* @param \AppBundle\Entity\TravelDestination $destination
|
|
*
|
|
* @return TravelCountry
|
|
*/
|
|
public function addDestination(\AppBundle\Entity\TravelDestination $destination)
|
|
{
|
|
$this->destinations[] = $destination;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Remove destination
|
|
*
|
|
* @param \AppBundle\Entity\TravelDestination $destination
|
|
*/
|
|
public function removeDestination(\AppBundle\Entity\TravelDestination $destination)
|
|
{
|
|
$this->destinations->removeElement($destination);
|
|
}
|
|
|
|
/**
|
|
* Get destinations
|
|
*
|
|
* @return \Doctrine\Common\Collections\Collection
|
|
*/
|
|
public function getDestinations()
|
|
{
|
|
return $this->destinations;
|
|
}
|
|
}
|