<?php
namespace TheatreCore\Entity;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
/**
* Podcasts
*
* @ORM\Table(name="podcasts", indexes={@ORM\Index(name="url_clean", columns={"url_clean"})})
* @ORM\Entity(repositoryClass="TheatreCore\Repository\PodcastsRepository")
*/
class Podcasts
{
/**
* @var int
*
* @ORM\Column(name="idpodcast", type="integer", nullable=false, options={"unsigned"=true})
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
private $idpodcast;
/**
* @var string|null
*
* @ORM\Column(name="title", type="string", length=255, nullable=true)
*
* @Assert\NotBlank(message="Veuillez préciser le titre")
*
*/
private $title;
/**
* @var string|null
*
* @ORM\Column(name="description", type="text", length=65535, nullable=true)
*/
private $description;
/**
* @var string|null
*
* @ORM\Column(name="title_program", type="string", length=250, nullable=true)
*/
private $titleProgram;
/**
* @var string|null
*
* @ORM\Column(name="name_program", type="string", length=250, nullable=true)
*/
private $nameProgram;
/**
* @var \DateTime|null
*
* @ORM\Column(name="date_podcast", type="date", nullable=true)
*/
private $datePodcast;
/**
* @var string|null
*
* @ORM\Column(name="hour_podcast", type="string", length=10, nullable=true)
*/
private $hourPodcast;
/**
* @var string|null
*
* @ORM\Column(name="code_franceinter", type="string", length=255, nullable=true)
*/
private $codeFranceinter;
/**
* @var bool|null
*
* @ORM\Column(name="type_franceinter", type="boolean", nullable=true)
*/
private $typeFranceinter;
/**
* @var bool
*
* @ORM\Column(name="integrate_player", type="boolean", nullable=false)
*/
private $integratePlayer = '0';
/**
* @var string|null
*
* @ORM\Column(name="link", type="string", length=255, nullable=true)
*/
private $link;
/**
* @var int|null
*
* @ORM\Column(name="duration", type="integer", nullable=true, options={"default"="1000"})
*/
private $duration = '1000';
/**
* @var int|null
*
* @ORM\Column(name="code_ft", type="integer", nullable=true)
*/
private $codeFt;
/**
* @var bool|null
*
* @ORM\Column(name="is_integrale", type="boolean", nullable=true)
*/
private $isIntegrale;
/**
* @var bool|null
*
* @ORM\Column(name="type_diffusion", type="boolean", nullable=true)
*/
private $typeDiffusion;
/**
* @var \DateTime|null
*
* @ORM\Column(name="fin_visionnage_ft", type="datetime", nullable=true)
*/
private $finVisionnageFt;
/**
* @var \DateTime|null
*
* @ORM\Column(name="date_captation_ft", type="datetime", nullable=true)
*/
private $dateCaptationFt;
/**
* @var \DateTime|null
*
* @ORM\Column(name="debut_visionnage_ft", type="datetime", nullable=true)
*/
private $debutVisionnageFt;
/**
* @var string|null
*
* @ORM\Column(name="code_arte", type="string", length=255, nullable=true)
*/
private $codeArte;
/**
* @var string|null
*
* @ORM\Column(name="code_soundcloud", type="string", length=255, nullable=true)
*/
private $codeSoundcloud;
/**
* @var string|null
*
* @ORM\Column(name="code_spotify", type="string", length=255, nullable=true)
*/
private $codeSpotify;
/**
* @var string|null
*
* @ORM\Column(name="url_file", type="string", length=255, nullable=true)
*/
private $urlFile;
/**
* @var string|null
*
* @ORM\Column(name="url_clean", type="string", length=250, nullable=true)
*/
private $urlClean;
/**
* @var \DateTime|null
*
* @ORM\Column(name="dateupdate", type="datetime", nullable=true)
*/
private $dateupdate;
/**
* @var \DateTime|null
*
* @ORM\Column(name="dateinsert", type="datetime", nullable=true)
*/
private $dateinsert;
/**
* @var bool
*
* @ORM\Column(name="publish", type="boolean", nullable=false, options={"default"="1"})
*/
private $publish = true;
/**
* @var bool
*
* @ORM\Column(name="valid", type="boolean", nullable=false)
*/
private $valid = false;
/**
* @var int|null
*
* @ORM\Column(name="idextranetuser", type="integer", nullable=true, options={"unsigned"=true})
*/
private $idextranetuser;
/**
* @var \Doctrine\Common\Collections\Collection
*
* @ORM\ManyToMany(targetEntity="Contacts", inversedBy="idpodcast")
* @ORM\JoinTable(name="podcast_contact",
* joinColumns={
* @ORM\JoinColumn(name="idpodcast", referencedColumnName="idpodcast")
* },
* inverseJoinColumns={
* @ORM\JoinColumn(name="idcontact", referencedColumnName="idcontact")
* }
* )
*/
private $idcontact;
/**
* @var \Doctrine\Common\Collections\Collection
*
* @ORM\ManyToMany(targetEntity="Persons", inversedBy="idpodcast")
* @ORM\JoinTable(name="podcast_person",
* joinColumns={
* @ORM\JoinColumn(name="idpodcast", referencedColumnName="idpodcast")
* },
* inverseJoinColumns={
* @ORM\JoinColumn(name="idperson", referencedColumnName="idperson")
* }
* )
*/
private $idperson;
/**
* @var \Doctrine\Common\Collections\Collection
*
* @ORM\ManyToMany(targetEntity="Spectacles", inversedBy="idpodcast")
* @ORM\JoinTable(name="podcast_spectacle",
* joinColumns={
* @ORM\JoinColumn(name="idpodcast", referencedColumnName="idpodcast")
* },
* inverseJoinColumns={
* @ORM\JoinColumn(name="idspectacle", referencedColumnName="idspectacle")
* }
* )
*/
private $idspectacle;
/**
* @var \Doctrine\Common\Collections\Collection
*
* @ORM\ManyToMany(targetEntity="Texts", inversedBy="idpodcast")
* @ORM\JoinTable(name="podcast_text",
* joinColumns={
* @ORM\JoinColumn(name="idpodcast", referencedColumnName="idpodcast")
* },
* inverseJoinColumns={
* @ORM\JoinColumn(name="idtext", referencedColumnName="idtext")
* }
* )
*/
private $idtext;
/**
* Constructor
*/
public function __construct()
{
$this->idcontact = new \Doctrine\Common\Collections\ArrayCollection();
$this->idperson = new \Doctrine\Common\Collections\ArrayCollection();
$this->idspectacle = new \Doctrine\Common\Collections\ArrayCollection();
$this->idtext = new \Doctrine\Common\Collections\ArrayCollection();
}
/**
* Get idpodcast.
*
* @return int
*/
public function getIdpodcast()
{
return $this->idpodcast;
}
/**
* Set title.
*
* @param string|null $title
*
* @return Podcasts
*/
public function setTitle($title = null)
{
$this->title = $title;
return $this;
}
/**
* Get title.
*
* @return string|null
*/
public function getTitle()
{
return $this->title;
}
/**
* Set description.
*
* @param string|null $description
*
* @return Podcasts
*/
public function setDescription($description = null)
{
$this->description = $description;
return $this;
}
/**
* Get description.
*
* @return string|null
*/
public function getDescription()
{
return $this->description;
}
/**
* Set titleProgram.
*
* @param string|null $titleProgram
*
* @return Podcasts
*/
public function setTitleProgram($titleProgram = null)
{
$this->titleProgram = $titleProgram;
return $this;
}
/**
* Get titleProgram.
*
* @return string|null
*/
public function getTitleProgram()
{
return $this->titleProgram;
}
/**
* Set nameProgram.
*
* @param string|null $nameProgram
*
* @return Podcasts
*/
public function setNameProgram($nameProgram = null)
{
$this->nameProgram = $nameProgram;
return $this;
}
/**
* Get nameProgram.
*
* @return string|null
*/
public function getNameProgram()
{
return $this->nameProgram;
}
/**
* Set datePodcast.
*
* @param \DateTime|null $datePodcast
*
* @return Podcasts
*/
public function setDatePodcast($datePodcast = null)
{
$this->datePodcast = $datePodcast;
return $this;
}
/**
* Get datePodcast.
*
* @return \DateTime|null
*/
public function getDatePodcast()
{
return $this->datePodcast;
}
/**
* Set hourPodcast.
*
* @param string|null $hourPodcast
*
* @return Podcasts
*/
public function setHourPodcast($hourPodcast = null)
{
$this->hourPodcast = $hourPodcast;
return $this;
}
/**
* Get hourPodcast.
*
* @return string|null
*/
public function getHourPodcast()
{
return $this->hourPodcast;
}
/**
* Set codeFranceinter.
*
* @param string|null $codeFranceinter
*
* @return Podcasts
*/
public function setCodeFranceinter($codeFranceinter = null)
{
$this->codeFranceinter = $codeFranceinter;
return $this;
}
/**
* Get codeFranceinter.
*
* @return string|null
*/
public function getCodeFranceinter()
{
return $this->codeFranceinter;
}
/**
* Set typeFranceinter.
*
* @param bool|null $typeFranceinter
*
* @return Podcasts
*/
public function setTypeFranceinter($typeFranceinter = null)
{
$this->typeFranceinter = $typeFranceinter;
return $this;
}
/**
* Get typeFranceinter.
*
* @return bool|null
*/
public function getTypeFranceinter()
{
return $this->typeFranceinter;
}
/**
* Set integratePlayer.
*
* @param bool $integratePlayer
*
* @return Podcasts
*/
public function setIntegratePlayer($integratePlayer)
{
$this->integratePlayer = $integratePlayer;
return $this;
}
/**
* Get integratePlayer.
*
* @return bool
*/
public function getIntegratePlayer()
{
return $this->integratePlayer;
}
/**
* Set link.
*
* @param string|null $link
*
* @return Podcasts
*/
public function setLink($link = null)
{
$this->link = $link;
return $this;
}
/**
* Get link.
*
* @return string|null
*/
public function getLink()
{
return $this->link;
}
/**
* Set duration.
*
* @param int|null $duration
*
* @return Podcasts
*/
public function setDuration($duration = null)
{
$this->duration = $duration;
return $this;
}
/**
* Get duration.
*
* @return int|null
*/
public function getDuration()
{
return $this->duration;
}
/**
* Set codeFt.
*
* @param int|null $codeFt
*
* @return Podcasts
*/
public function setCodeFt($codeFt = null)
{
$this->codeFt = $codeFt;
return $this;
}
/**
* Get codeFt.
*
* @return int|null
*/
public function getCodeFt()
{
return $this->codeFt;
}
/**
* Set isIntegrale.
*
* @param bool|null $isIntegrale
*
* @return Podcasts
*/
public function setIsIntegrale($isIntegrale = null)
{
$this->isIntegrale = $isIntegrale;
return $this;
}
/**
* Get isIntegrale.
*
* @return bool|null
*/
public function getIsIntegrale()
{
return $this->isIntegrale;
}
/**
* Set typeDiffusion.
*
* @param bool|null $typeDiffusion
*
* @return Podcasts
*/
public function setTypeDiffusion($typeDiffusion = null)
{
$this->typeDiffusion = $typeDiffusion;
return $this;
}
/**
* Get typeDiffusion.
*
* @return bool|null
*/
public function getTypeDiffusion()
{
return $this->typeDiffusion;
}
/**
* Set finVisionnageFt.
*
* @param \DateTime|null $finVisionnageFt
*
* @return Podcasts
*/
public function setFinVisionnageFt($finVisionnageFt = null)
{
$this->finVisionnageFt = $finVisionnageFt;
return $this;
}
/**
* Get finVisionnageFt.
*
* @return \DateTime|null
*/
public function getFinVisionnageFt()
{
return $this->finVisionnageFt;
}
/**
* Set dateCaptationFt.
*
* @param \DateTime|null $dateCaptationFt
*
* @return Podcasts
*/
public function setDateCaptationFt($dateCaptationFt = null)
{
$this->dateCaptationFt = $dateCaptationFt;
return $this;
}
/**
* Get dateCaptationFt.
*
* @return \DateTime|null
*/
public function getDateCaptationFt()
{
return $this->dateCaptationFt;
}
/**
* Set debutVisionnageFt.
*
* @param \DateTime|null $debutVisionnageFt
*
* @return Podcasts
*/
public function setDebutVisionnageFt($debutVisionnageFt = null)
{
$this->debutVisionnageFt = $debutVisionnageFt;
return $this;
}
/**
* Get debutVisionnageFt.
*
* @return \DateTime|null
*/
public function getDebutVisionnageFt()
{
return $this->debutVisionnageFt;
}
/**
* Set codeArte.
*
* @param int|null $codeArte
*
* @return Podcasts
*/
public function setCodeArte($codeArte = null)
{
$this->codeArte = $codeArte;
return $this;
}
/**
* Get codeArte.
*
* @return int|null
*/
public function getCodeArte()
{
return $this->codeArte;
}
/**
* Set codeSoundcloud.
*
* @param int|null $codeSoundcloud
*
* @return Podcasts
*/
public function setCodeSoundcloud($codeSoundcloud = null)
{
$this->codeSoundcloud = $codeSoundcloud;
return $this;
}
/**
* Get codeSoundcloud.
*
* @return int|null
*/
public function getCodeSoundcloud()
{
return $this->codeSoundcloud;
}
/**
* Set codeSpotify.
*
* @param int|null $codeSpotify
*
* @return Podcasts
*/
public function setCodeSpotify($codeSpotify = null)
{
$this->codeSpotify = $codeSpotify;
return $this;
}
/**
* Get codeSpotify.
*
* @return int|null
*/
public function getCodeSpotify()
{
return $this->codeSpotify;
}
/**
* Set urlFile.
*
* @param string|null $urlFile
*
* @return Podcasts
*/
public function setUrlFile($urlFile = null)
{
$this->urlFile = $urlFile;
return $this;
}
/**
* Get urlFile.
*
* @return string|null
*/
public function getUrlFile()
{
return $this->urlFile;
}
/**
* Set urlClean.
*
* @param string|null $urlClean
*
* @return Podcasts
*/
public function setUrlClean($urlClean = null)
{
$this->urlClean = $urlClean;
return $this;
}
/**
* Get urlClean.
*
* @return string|null
*/
public function getUrlClean()
{
return $this->urlClean;
}
/**
* Set dateupdate.
*
* @param \DateTime|null $dateupdate
*
* @return Podcasts
*/
public function setDateupdate($dateupdate = null)
{
$this->dateupdate = $dateupdate;
return $this;
}
/**
* Get dateupdate.
*
* @return \DateTime|null
*/
public function getDateupdate()
{
return $this->dateupdate;
}
/**
* Set dateinsert.
*
* @param \DateTime|null $dateinsert
*
* @return Podcasts
*/
public function setDateinsert($dateinsert = null)
{
$this->dateinsert = $dateinsert;
return $this;
}
/**
* Get dateinsert.
*
* @return \DateTime|null
*/
public function getDateinsert()
{
return $this->dateinsert;
}
/**
* Set publish.
*
* @param bool $publish
*
* @return Podcasts
*/
public function setPublish($publish)
{
$this->publish = $publish;
return $this;
}
/**
* Get publish.
*
* @return bool
*/
public function getPublish()
{
return $this->publish;
}
/**
* Set valid.
*
* @param bool $valid
*
* @return Podcasts
*/
public function setValid($valid)
{
$this->valid = $valid;
return $this;
}
/**
* Get valid.
*
* @return bool
*/
public function getValid()
{
return $this->valid;
}
/**
* Set idextranetuser.
*
* @param int|null $idextranetuser
*
* @return Podcasts
*/
public function setIdextranetuser($idextranetuser = null)
{
$this->idextranetuser = $idextranetuser;
return $this;
}
/**
* Get idextranetuser.
*
* @return int|null
*/
public function getIdextranetuser()
{
return $this->idextranetuser;
}
/**
* Add idcontact.
*
* @param \Contacts $idcontact
*
* @return Podcasts
*/
public function addIdcontact(Contacts $idcontact)
{
$this->idcontact[] = $idcontact;
return $this;
}
/**
* Remove idcontact.
*
* @param \Contacts $idcontact
*
* @return boolean TRUE if this collection contained the specified element, FALSE otherwise.
*/
public function removeIdcontact(Contacts $idcontact)
{
return $this->idcontact->removeElement($idcontact);
}
/**
* Get idcontact.
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getIdcontact()
{
return $this->idcontact;
}
/**
* Add idperson.
*
* @param \Persons $idperson
*
* @return Podcasts
*/
public function addIdperson(Persons $idperson)
{
$this->idperson[] = $idperson;
return $this;
}
/**
* Remove idperson.
*
* @param \Persons $idperson
*
* @return boolean TRUE if this collection contained the specified element, FALSE otherwise.
*/
public function removeIdperson(Persons $idperson)
{
return $this->idperson->removeElement($idperson);
}
/**
* Get idperson.
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getIdperson()
{
return $this->idperson;
}
/**
* Add idspectacle.
*
* @param \Spectacles $idspectacle
*
* @return Podcasts
*/
public function addIdspectacle(Spectacles $idspectacle)
{
$this->idspectacle[] = $idspectacle;
return $this;
}
/**
* Remove idspectacle.
*
* @param \Spectacles $idspectacle
*
* @return boolean TRUE if this collection contained the specified element, FALSE otherwise.
*/
public function removeIdspectacle(Spectacles $idspectacle)
{
return $this->idspectacle->removeElement($idspectacle);
}
/**
* Get idspectacle.
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getIdspectacle()
{
return $this->idspectacle;
}
/**
* Add idtext.
*
* @param \Texts $idtext
*
* @return Podcasts
*/
public function addIdtext(Texts $idtext)
{
$this->idtext[] = $idtext;
return $this;
}
/**
* Remove idtext.
*
* @param \Texts $idtext
*
* @return boolean TRUE if this collection contained the specified element, FALSE otherwise.
*/
public function removeIdtext(Texts $idtext)
{
return $this->idtext->removeElement($idtext);
}
/**
* Get idtext.
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getIdtext()
{
return $this->idtext;
}
}