src/Aviatur/GeneralBundle/Entity/SeoIndex.php line 13

Open in your IDE?
  1. <?php
  2. namespace Aviatur\GeneralBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * SeoUrl.
  6.  *
  7.  * @ORM\Table(name="seo_index")
  8.  * @ORM\Entity(repositoryClass="Aviatur\GeneralBundle\Entity\SeoUrlRepository")
  9.  */
  10. class SeoIndex
  11. {
  12.     /**
  13.      * @var int
  14.      *
  15.      * @ORM\Column(name="id", type="integer", nullable=false)
  16.      * @ORM\Id
  17.      * @ORM\GeneratedValue(strategy="IDENTITY")
  18.      */
  19.     private $id;
  20.     /**
  21.      * @var string
  22.      *
  23.      * @ORM\Column(name="url", type="text", nullable=false)
  24.      */
  25.     private $url;
  26.     /**
  27.      * @var string
  28.      *
  29.      * @ORM\Column(name="name", type="string", length=50, nullable=false)
  30.      */
  31.     private $name;
  32.     /**
  33.      * @var string
  34.      *
  35.      * @ORM\Column(name="content", type="string", length=50, nullable=false)
  36.      */
  37.     private $content null;
  38.     /**
  39.      * @var \Agency
  40.      *
  41.      * @ORM\ManyToOne(targetEntity="Aviatur\AgencyBundle\Entity\Agency")
  42.      * @ORM\JoinColumns({
  43.      *   @ORM\JoinColumn(name="agency_id", referencedColumnName="id")
  44.      * })
  45.      */
  46.     private $agency;
  47.     /**
  48.      * Get id.
  49.      *
  50.      * @return int
  51.      */
  52.     public function getId()
  53.     {
  54.         return $this->id;
  55.     }
  56.     /**
  57.      * Set url.
  58.      *
  59.      * @param string $url
  60.      *
  61.      * @return SeoFlight
  62.      */
  63.     public function setUrl($url)
  64.     {
  65.         $this->url $url;
  66.         return $this;
  67.     }
  68.     /**
  69.      * Get url.
  70.      *
  71.      * @return string
  72.      */
  73.     public function getUrl()
  74.     {
  75.         return $this->url;
  76.     }
  77.     /**
  78.      * Set name.
  79.      *
  80.      * @param string $name
  81.      *
  82.      * @return SeoFlight
  83.      */
  84.     public function setName($name)
  85.     {
  86.         $this->name $name;
  87.         return $this;
  88.     }
  89.     /**
  90.      * Get name.
  91.      *
  92.      * @return string
  93.      */
  94.     public function getName()
  95.     {
  96.         return $this->name;
  97.     }
  98.     /**
  99.      * Get content.
  100.      *
  101.      * @return string
  102.      */
  103.     public function getContent()
  104.     {
  105.         return $this->content;
  106.     }
  107.     /**
  108.      * Set content.
  109.      *
  110.      * @param string $content
  111.      *
  112.      * @return SeoFlight
  113.      */
  114.     public function setContent($content)
  115.     {
  116.         $this->content $content;
  117.         return $this;
  118.     }
  119.     /**
  120.      * Set agency.
  121.      *
  122.      * @param \Aviatur\AgencyBundle\Entity\Agency $agency
  123.      *
  124.      * @return SeoIndex
  125.      */
  126.     public function setAgency(\Aviatur\AgencyBundle\Entity\Agency $agency null)
  127.     {
  128.         $this->agency $agency;
  129.         return $this;
  130.     }
  131.     /**
  132.      * Get agency.
  133.      *
  134.      * @return \Aviatur\AgencyBundle\Entity\Agency
  135.      */
  136.     public function getAgency()
  137.     {
  138.         return $this->agency;
  139.     }
  140. }