<?php
/**
* Created by PhpStorm.
* User: lisavandaele
* Date: 30/01/15
* Time: 12:53
*/
namespace Notaris\AdminBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Mapping\Annotation as Gedmo;
/**
* @ORM\Entity(repositoryClass="VideoPathRepository")
* @ORM\Table(name="video_path",uniqueConstraints={
* @ORM\UniqueConstraint(name="unique_filename", columns={"path","locale"})})
*/
class VideoPath {
/**
* @var integer
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @var string
*
* @ORM\Column(name="path", type="string", length=255, nullable=true)
*/
private $path;
/**
* @var string
*
* @ORM\Column(name="youtube", type="string", length=255, nullable=true)
*/
private $youtube;
/**
* @var string
*
* @ORM\Column(name="locale", type="string", length=5)
*/
private $locale;
/**
* @Gedmo\Timestampable(on="create")
* @ORM\Column(name="created", type="datetime")
*/
protected $created;
private $video;
/**
* Get id
*
* @return integer
*/
public function getId()
{
return $this->id;
}
/**
* Set path
*
* @param string $path
* @return VideoPath
*/
public function setPath($path)
{
$this->path = $path;
return $this;
}
/**
* Get path
*
* @return string
*/
public function getPath()
{
return $this->path;
}
/**
* Set locale
*
* @param string $locale
* @return VideoPath
*/
public function setLocale($locale)
{
$this->locale = $locale;
return $this;
}
/**
* Get locale
*
* @return string
*/
public function getLocale()
{
return $this->locale;
}
/**
* Set created
*
* @param \DateTime $created
* @return VideoPath
*/
public function setCreated($created)
{
$this->created = $created;
return $this;
}
/**
* Get created
*
* @return \DateTime
*/
public function getCreated()
{
return $this->created;
}
/**
* Set youtube
*
* @param string $youtube
* @return VideoPath
*/
public function setYoutube($youtube)
{
$this->youtube = $youtube;
return $this;
}
/**
* Get youtube
*
* @return string
*/
public function getYoutube()
{
return $this->youtube;
}
/**
* @return mixed
*/
public function getVideo()
{
return $this->video;
}
/**
* @param mixed $video
*/
public function setVideo($video)
{
$this->video = $video;
}
}