src/Notaris/AdminBundle/Entity/VideoPath.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. /**
  12.  * @ORM\Entity(repositoryClass="VideoPathRepository")
  13.  * @ORM\Table(name="video_path",uniqueConstraints={
  14.  *     @ORM\UniqueConstraint(name="unique_filename", columns={"path","locale"})})
  15.  */
  16. class VideoPath {
  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.      * @var string
  27.      *
  28.      * @ORM\Column(name="path", type="string", length=255, nullable=true)
  29.      */
  30.     private $path;
  31.     /**
  32.      * @var string
  33.      *
  34.      * @ORM\Column(name="youtube", type="string", length=255, nullable=true)
  35.      */
  36.     private $youtube;
  37.     /**
  38.      * @var string
  39.      *
  40.      * @ORM\Column(name="locale", type="string", length=5)
  41.      */
  42.     private $locale;
  43.     /**
  44.      * @Gedmo\Timestampable(on="create")
  45.      * @ORM\Column(name="created", type="datetime")
  46.      */
  47.     protected $created;
  48.     private $video;
  49.     /**
  50.      * Get id
  51.      *
  52.      * @return integer 
  53.      */
  54.     public function getId()
  55.     {
  56.         return $this->id;
  57.     }
  58.     /**
  59.      * Set path
  60.      *
  61.      * @param string $path
  62.      * @return VideoPath
  63.      */
  64.     public function setPath($path)
  65.     {
  66.         $this->path = $path;
  67.         return $this;
  68.     }
  69.     /**
  70.      * Get path
  71.      *
  72.      * @return string 
  73.      */
  74.     public function getPath()
  75.     {
  76.         return $this->path;
  77.     }
  78.     /**
  79.      * Set locale
  80.      *
  81.      * @param string $locale
  82.      * @return VideoPath
  83.      */
  84.     public function setLocale($locale)
  85.     {
  86.         $this->locale = $locale;
  87.         return $this;
  88.     }
  89.     /**
  90.      * Get locale
  91.      *
  92.      * @return string 
  93.      */
  94.     public function getLocale()
  95.     {
  96.         return $this->locale;
  97.     }
  98.     /**
  99.      * Set created
  100.      *
  101.      * @param \DateTime $created
  102.      * @return VideoPath
  103.      */
  104.     public function setCreated($created)
  105.     {
  106.         $this->created = $created;
  107.         return $this;
  108.     }
  109.     /**
  110.      * Get created
  111.      *
  112.      * @return \DateTime 
  113.      */
  114.     public function getCreated()
  115.     {
  116.         return $this->created;
  117.     }
  118.     /**
  119.      * Set youtube
  120.      *
  121.      * @param string $youtube
  122.      * @return VideoPath
  123.      */
  124.     public function setYoutube($youtube)
  125.     {
  126.         $this->youtube = $youtube;
  127.         return $this;
  128.     }
  129.     /**
  130.      * Get youtube
  131.      *
  132.      * @return string 
  133.      */
  134.     public function getYoutube()
  135.     {
  136.         return $this->youtube;
  137.     }
  138.     /**
  139.      * @return mixed
  140.      */
  141.     public function getVideo()
  142.     {
  143.         return $this->video;
  144.     }
  145.     /**
  146.      * @param mixed $video
  147.      */
  148.     public function setVideo($video)
  149.     {
  150.         $this->video = $video;
  151.     }
  152. }