<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use App\Repository\Actuv2PodcastRepository;
use Symfony\Component\Validator\Constraints\Date;
use Vich\UploaderBundle\Mapping\Annotation as Vich;
use Symfony\Component\HttpFoundation\File\File;
/**
* Actuv2Podcast
*
* @Vich\Uploadable
*/
#[ORM\Table(name: 'actuv2_podcast')]
#[ORM\Entity(repositoryClass: Actuv2PodcastRepository::class)]
class Actuv2Podcast
{
/**
* @var int
*
*/
#[ORM\Column(name: 'id', type: 'bigint', nullable: false)]
#[ORM\Id]
#[ORM\GeneratedValue(strategy: 'IDENTITY')]
private $id;
/**
* @var \DateTime|null
*
*/
#[ORM\Column(name: 'date', type: 'date', nullable: true, options: ['comment' => 'période'])]
private $date;
/**
* @var string
*
*/
#[ORM\Column(name: 'titre', type: 'string', length: 255, nullable: false)]
private $titre = '';
/**
* @var string
*
*/
#[ORM\Column(name: 'auteur', type: 'string', length: 255, nullable: true)]
private $auteur = '';
/**
* @var string
*
*/
#[ORM\Column(name: 'podcast', type: 'string', length: 255, nullable: true, options: ['comment' => 'format mobile portrait'])]
private $podcast = '';
/**
* @Vich\UploadableField(mapping="actuv2podcast", fileNameProperty="podcast")
* @var File|null
*/
private $tmpPodcast = null;
/**
* @var string
*
*/
#[ORM\Column(name: 'ausha_url', type: 'text', nullable: true)]
private $ausha_url = '';
#[ORM\Column(type: 'datetime', nullable: true)]
private $updatedAt;
public function getId(): ?string
{
return $this->id;
}
public function getDate(): ?\DateTimeInterface
{
return $this->date;
}
public function setDate(?\DateTimeInterface $date): self
{
$this->date = $date;
return $this;
}
public function getTitre(): ?string
{
return $this->titre;
}
public function setTitre(string $titre): self
{
$this->titre = $titre;
return $this;
}
public function getAuteur(): ?string
{
return $this->auteur;
}
public function setAuteur(string $auteur): self
{
$this->auteur = $auteur;
return $this;
}
public function getPodcast(): ?string
{
return $this->podcast;
}
public function setPodcast(?string $podcast): self
{
$this->podcast = is_null($podcast) ? "" : $podcast;
return $this;
}
public function setTmpPodcast(?File $tmpPodcast = null): void
{
$this->tmpPodcast = $tmpPodcast;
$this->updatedAt = new \DateTime('now');
}
public function getTmpPodcast(): ?File
{
return $this->tmpPodcast;
}
public function getAushaUrl(): ?string
{
return $this->ausha_url;
}
public function getausha_url(): ?string
{
return $this->ausha_url;
}
public function setAushaUrl(string $ausha_url): self
{
$this->ausha_url = $ausha_url;
return $this;
}
public function getUpdatedAt(): ?\DateTimeInterface
{
return $this->updatedAt;
}
public function setUpdatedAt(?\DateTimeInterface $updatedAt): self
{
$this->updatedAt = $updatedAt;
return $this;
}
}