src/Aviatur/GeneralBundle/Entity/Whitemark.php line 18

Open in your IDE?
  1. <?php
  2. namespace Aviatur\GeneralBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
  5. /**
  6.  * whitemark.
  7.  *
  8.  * @ORM\Table(name="whitemark")
  9.  * @ORM\Entity
  10.  * @UniqueEntity(
  11.  * fields={"url"},
  12.  * message="La url ya esta asignada."
  13.  * )
  14.  */
  15. class Whitemark
  16. {
  17.     /**
  18.      * @var int
  19.      *
  20.      * @ORM\Column(name="id", type="integer")
  21.      * @ORM\Id
  22.      * @ORM\GeneratedValue(strategy="AUTO")
  23.      */
  24.     private $id;
  25.     /**
  26.      *
  27.      * @ORM\ManyToOne(targetEntity="Aviatur\AgencyBundle\Entity\Agency", inversedBy="whitemark")
  28.      * @ORM\JoinColumns({
  29.      *   @ORM\JoinColumn(name="agency_id", referencedColumnName="id")
  30.      * })
  31.      */
  32.     private ?\Aviatur\AgencyBundle\Entity\Agency $agency null;
  33.     /**
  34.      * @var string
  35.      *
  36.      * @ORM\Column(name="name", type="string", length=255)
  37.      */
  38.     private $name;
  39.     /**
  40.      * @var string
  41.      *
  42.      * @ORM\Column(name="url", type="string", length=255)
  43.      */
  44.     private $url;
  45.     /**
  46.      * @var string
  47.      *
  48.      * @ORM\Column(name="referer", type="string", length=255)
  49.      */
  50.     private $referer;
  51.     /**
  52.      * @var bool
  53.      *
  54.      * @ORM\Column(name="embebed", type="boolean", nullable=false)
  55.      */
  56.     private $embebed;
  57.     /**
  58.      * Get id.
  59.      *
  60.      * @return int
  61.      */
  62.     /**
  63.      * @var string
  64.      *
  65.      * @ORM\Column(name="phone", type="string", length=255)
  66.      */
  67.     private $phone;
  68.     /**
  69.      * @var string
  70.      *
  71.      * @ORM\Column(name="address", type="string", length=255)
  72.      */
  73.     private $address;
  74.     /**
  75.      * @var string
  76.      *
  77.      * @ORM\Column(name="email", type="string", length=255)
  78.      */
  79.     private $email;
  80.     /**
  81.      * @var string
  82.      *
  83.      * @ORM\Column(name="officeId", type="string", length=50, nullable=false)
  84.      */
  85.     private $officeid;
  86.     /**
  87.      * @var string
  88.      *
  89.      * @ORM\Column(name="phonesContact", type="string", length=255, nullable=true)
  90.      */
  91.     private $phonescontact;
  92.     public function __toString()
  93.     {
  94.         $return $this->id;
  95.         return (string) $return;
  96.     }
  97.     public function getId()
  98.     {
  99.         return $this->id;
  100.     }
  101.     /**
  102.      * Set agency.
  103.      *
  104.      * @param \Aviatur\AgencyBundle\Entity\Agency $agency
  105.      *
  106.      * @return whitemark
  107.      */
  108.     public function setAgency(\Aviatur\AgencyBundle\Entity\Agency $agency null)
  109.     {
  110.         $this->agency $agency;
  111.         return $this;
  112.     }
  113.     /**
  114.      * Get agency.
  115.      *
  116.      * @return \Aviatur\AgencyBundle\Entity\Agency
  117.      */
  118.     public function getAgency()
  119.     {
  120.         return $this->agency;
  121.     }
  122.     /**
  123.      * Set name.
  124.      *
  125.      * @param string $name
  126.      *
  127.      * @return whitemark
  128.      */
  129.     public function setName($name)
  130.     {
  131.         $this->name $name;
  132.         return $this;
  133.     }
  134.     /**
  135.      * Get name.
  136.      *
  137.      * @return string
  138.      */
  139.     public function getName()
  140.     {
  141.         return $this->name;
  142.     }
  143.     /**
  144.      * Set url.
  145.      *
  146.      * @param string $url
  147.      *
  148.      * @return whitemark
  149.      */
  150.     public function setUrl($url)
  151.     {
  152.         $this->url $url;
  153.         return $this;
  154.     }
  155.     /**
  156.      * Get url.
  157.      *
  158.      * @return string
  159.      */
  160.     public function getUrl()
  161.     {
  162.         return $this->url;
  163.     }
  164.     /**
  165.      * Set referer.
  166.      *
  167.      * @param string $referer
  168.      *
  169.      * @return whitemark
  170.      */
  171.     public function setReferer($referer)
  172.     {
  173.         $this->referer $referer;
  174.         return $this;
  175.     }
  176.     /**
  177.      * Get referer.
  178.      *
  179.      * @return string
  180.      */
  181.     public function getReferer()
  182.     {
  183.         return $this->referer;
  184.     }
  185.     /**
  186.      * Set referer.
  187.      *
  188.      * @param string $embebed
  189.      *
  190.      * @return whitemark
  191.      */
  192.     public function setEmbebed($embebed)
  193.     {
  194.         $this->embebed $embebed;
  195.         return $this;
  196.     }
  197.     /**
  198.      * Get referer.
  199.      *
  200.      * @return string
  201.      */
  202.     public function getEmbebed()
  203.     {
  204.         return $this->embebed;
  205.     }
  206.     /**
  207.      * Set phone.
  208.      *
  209.      * @param string $phone
  210.      *
  211.      * @return whitemark
  212.      */
  213.     public function setphone($phone)
  214.     {
  215.         $this->phone $phone;
  216.         return $this;
  217.     }
  218.     /**
  219.      * Get phone.
  220.      *
  221.      * @return string
  222.      */
  223.     public function getPhone()
  224.     {
  225.         return $this->phone;
  226.     }
  227.     /**
  228.      * Set address.
  229.      *
  230.      * @param string $address
  231.      *
  232.      * @return whitemark
  233.      */
  234.     public function setAddress($address)
  235.     {
  236.         $this->address $address;
  237.         return $this;
  238.     }
  239.     /**
  240.      * Get address.
  241.      *
  242.      * @return string
  243.      */
  244.     public function getAddress()
  245.     {
  246.         return $this->address;
  247.     }
  248.     /**
  249.      * Set email.
  250.      *
  251.      * @param string $email
  252.      *
  253.      * @return whitemark
  254.      */
  255.     public function setEmail($email)
  256.     {
  257.         $this->email $email;
  258.         return $this;
  259.     }
  260.     /**
  261.      * Get email.
  262.      *
  263.      * @return string
  264.      */
  265.     public function getEmail()
  266.     {
  267.         return $this->email;
  268.     }
  269.     /**
  270.      * Set officeid.
  271.      *
  272.      * @param string $officeid
  273.      *
  274.      * @return Agency
  275.      */
  276.     public function setOfficeid($officeid)
  277.     {
  278.         $this->officeid $officeid;
  279.         return $this;
  280.     }
  281.     /**
  282.      * Get officeid.
  283.      *
  284.      * @return string
  285.      */
  286.     public function getOfficeid()
  287.     {
  288.         return $this->officeid;
  289.     }
  290.     /**
  291.      * Set phonescontact.
  292.      *
  293.      * @param string $phonescontact
  294.      *
  295.      * @return Agency
  296.      */
  297.     public function setPhonescontact($phonescontact)
  298.     {
  299.         $this->phonescontact $phonescontact;
  300.         return $this;
  301.     }
  302.     /**
  303.      * Get phonescontact.
  304.      *
  305.      * @return string
  306.      */
  307.     public function getPhonescontact()
  308.     {
  309.         return $this->phonescontact;
  310.     }
  311. }