src/Notaris/AdminBundle/Entity/HomeBanner.php line 19

Open in your IDE?
  1. <?php
  2. /**
  3.  * Created by PhpStorm.
  4.  * User: lisavandaele
  5.  * Date: 30/01/15
  6.  * Time: 12:53
  7.  */
  8. namespace Notaris\AdminBundle\Entity;
  9. use Doctrine\ORM\Mapping as ORM;
  10. use Gedmo\Mapping\Annotation as Gedmo;
  11. use Symfony\Component\Validator\Constraints as Assert;
  12. /**
  13.  * @ORM\Entity(repositoryClass="HomeBannerRepository")
  14.  * @ORM\Table(name="home_banner")
  15.  */
  16. class HomeBanner {
  17.     /**
  18.      * @var integer
  19.      *
  20.      * @ORM\Column(name="id", type="integer")
  21.      * @ORM\Id
  22.      * @ORM\GeneratedValue(strategy="AUTO")
  23.      */
  24.     private $id;
  25.     /**
  26.      * @Gedmo\Timestampable(on="create")
  27.      * @ORM\Column(name="created", type="datetime")
  28.      */
  29.     private $created;
  30.     /**
  31.      * @ORM\Column(name="updated", type="datetime")
  32.      * @Gedmo\Timestampable(on="update")
  33.      */
  34.     private $updated;
  35.     /**
  36.      * @ORM\ManyToOne(targetEntity="Notaris\AdminBundle\Entity\User")
  37.      * @ORM\JoinColumn(name="user_id", referencedColumnName="id", onDelete="SET NULL")
  38.      */
  39.     private $user;
  40.     /**
  41.      * @var integer
  42.      *
  43.      * @ORM\Column(type="integer")
  44.      */
  45.     private $position = 0;
  46.     /**
  47.      * @var string
  48.      *
  49.      * @ORM\Column(name="headline1", type="string", length=255, nullable=true)
  50.      */
  51.     private $headline1;
  52.     /**
  53.      * @var string
  54.      *
  55.      * @ORM\Column(name="headline2", type="string", length=255, nullable=true)
  56.      */
  57.     private $headline2;
  58.     /**
  59.      * @var string
  60.      *
  61.      * @ORM\Column(name="subline", type="text", length=255, nullable=true)
  62.      */
  63.     private $subline;
  64.     
  65.     /**
  66.      * @var string
  67.      *
  68.      * @ORM\Column(name="link", type="string", length=255, nullable=true)
  69.      */
  70.     private $link;
  71.     /**
  72.      * @var string
  73.      *
  74.      * @ORM\Column(name="youtube", type="string", length=255, nullable=true)
  75.      */
  76.     private $youtube;
  77.     /**
  78.      * @ORM\OneToOne(targetEntity="Asset")
  79.      * @ORM\JoinColumn(name="asset_id", referencedColumnName="id")
  80.      */
  81.     protected $asset;
  82.     /**
  83.      * @ORM\Column(type="boolean", name="is_active")
  84.      * @Assert\Type("boolean")
  85.      */
  86.     private $isActive;
  87.     /**
  88.      * @var string
  89.      *
  90.      * @ORM\Column(name="locale", type="string", length=5)
  91.      */
  92.     private $locale;
  93.     /**
  94.      * Get id
  95.      *
  96.      * @return integer 
  97.      */
  98.     public function getId()
  99.     {
  100.         return $this->id;
  101.     }
  102.     /**
  103.      * Set created
  104.      *
  105.      * @param \DateTime $created
  106.      * @return HomeBanner
  107.      */
  108.     public function setCreated($created)
  109.     {
  110.         $this->created = $created;
  111.         return $this;
  112.     }
  113.     /**
  114.      * Get created
  115.      *
  116.      * @return \DateTime 
  117.      */
  118.     public function getCreated()
  119.     {
  120.         return $this->created;
  121.     }
  122.     /**
  123.      * Set updated
  124.      *
  125.      * @param \DateTime $updated
  126.      * @return HomeBanner
  127.      */
  128.     public function setUpdated($updated)
  129.     {
  130.         $this->updated = $updated;
  131.         return $this;
  132.     }
  133.     /**
  134.      * Get updated
  135.      *
  136.      * @return \DateTime 
  137.      */
  138.     public function getUpdated()
  139.     {
  140.         return $this->updated;
  141.     }
  142.     /**
  143.      * Set position
  144.      *
  145.      * @param integer $position
  146.      * @return HomeBanner
  147.      */
  148.     public function setPosition($position)
  149.     {
  150.         $this->position = $position;
  151.         return $this;
  152.     }
  153.     /**
  154.      * Get position
  155.      *
  156.      * @return integer 
  157.      */
  158.     public function getPosition()
  159.     {
  160.         return $this->position;
  161.     }
  162.     /**
  163.      * Set headline1
  164.      *
  165.      * @param string $headline1
  166.      * @return HomeBanner
  167.      */
  168.     public function setHeadline1($headline1)
  169.     {
  170.         $this->headline1 = $headline1;
  171.         return $this;
  172.     }
  173.     /**
  174.      * Get headline1
  175.      *
  176.      * @return string 
  177.      */
  178.     public function getHeadline1()
  179.     {
  180.         return $this->headline1;
  181.     }
  182.     /**
  183.      * Set headline2
  184.      *
  185.      * @param string $headline2
  186.      * @return HomeBanner
  187.      */
  188.     public function setHeadline2($headline2)
  189.     {
  190.         $this->headline2 = $headline2;
  191.         return $this;
  192.     }
  193.     /**
  194.      * Get headline2
  195.      *
  196.      * @return string 
  197.      */
  198.     public function getHeadline2()
  199.     {
  200.         return $this->headline2;
  201.     }
  202.     /**
  203.      * Set subline
  204.      *
  205.      * @param text $subline
  206.      * @return HomeBanner
  207.      */
  208.     public function setSubline($subline)
  209.     {
  210.         $this->subline = $subline;
  211.         return $this;
  212.     }
  213.     /**
  214.      * Get subline
  215.      *
  216.      * @return string 
  217.      */
  218.     public function getSubline()
  219.     {
  220.         return $this->subline;
  221.     }
  222.     /**
  223.      * Set youtube
  224.      *
  225.      * @param string $youtube
  226.      * @return HomeBanner
  227.      */
  228.     public function setYoutube($youtube)
  229.     {
  230.         $this->youtube = $youtube;
  231.         return $this;
  232.     }
  233.     /**
  234.      * Get youtube
  235.      *
  236.      * @return string 
  237.      */
  238.     public function getYoutube()
  239.     {
  240.         return $this->youtube;
  241.     }
  242.     /**
  243.      * Set isActive
  244.      *
  245.      * @param boolean $isActive
  246.      * @return HomeBanner
  247.      */
  248.     public function setIsActive($isActive)
  249.     {
  250.         $this->isActive = $isActive;
  251.         return $this;
  252.     }
  253.     /**
  254.      * Get isActive
  255.      *
  256.      * @return boolean 
  257.      */
  258.     public function getIsActive()
  259.     {
  260.         return $this->isActive;
  261.     }
  262.     /**
  263.      * Set locale
  264.      *
  265.      * @param string $locale
  266.      * @return HomeBanner
  267.      */
  268.     public function setLocale($locale)
  269.     {
  270.         $this->locale = $locale;
  271.         return $this;
  272.     }
  273.     /**
  274.      * Get locale
  275.      *
  276.      * @return string 
  277.      */
  278.     public function getLocale()
  279.     {
  280.         return $this->locale;
  281.     }
  282.     
  283.     
  284.     /**
  285.      * Set link
  286.      *
  287.      * @param string $link
  288.      * @return HomeBanner
  289.      */
  290.     public function setLink($link)
  291.     {
  292.         $this->link = $link;
  293.         return $this;
  294.     }
  295.     /**
  296.      * Get link
  297.      *
  298.      * @return string 
  299.      */
  300.     public function getLink()
  301.     {
  302.         return $this->link;
  303.     }
  304.     /**
  305.      * Set user
  306.      *
  307.      * @param \Notaris\AdminBundle\Entity\User $user
  308.      * @return HomeBanner
  309.      */
  310.     public function setUser(\Notaris\AdminBundle\Entity\User $user = null)
  311.     {
  312.         $this->user = $user;
  313.         return $this;
  314.     }
  315.     /**
  316.      * Get user
  317.      *
  318.      * @return \Notaris\AdminBundle\Entity\User 
  319.      */
  320.     public function getUser()
  321.     {
  322.         return $this->user;
  323.     }
  324.     /**
  325.      * Set asset
  326.      *
  327.      * @param \Notaris\AdminBundle\Entity\Asset $asset
  328.      * @return HomeBanner
  329.      */
  330.     public function setAsset(\Notaris\AdminBundle\Entity\Asset $asset = null)
  331.     {
  332.         $this->asset = $asset;
  333.         return $this;
  334.     }
  335.     /**
  336.      * Get asset
  337.      *
  338.      * @return \Notaris\AdminBundle\Entity\Asset 
  339.      */
  340.     public function getAsset()
  341.     {
  342.         return $this->asset;
  343.     }
  344. }