<?php
namespace App\Entity;
use App\Repository\PodcastPrivateTaskRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: PodcastPrivateTaskRepository::class)]
class PodcastPrivateTask
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\ManyToOne(targetEntity: PodcastPrivate::class, inversedBy: 'podcastPrivateTasks')]
private $PodcastPrivate;
#[ORM\Column(type: 'datetime_immutable')]
private $createdAt;
#[ORM\Column(type: 'datetime_immutable', nullable: true)]
private $finishedAt;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $statusAudio;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $statusAusha;
#[ORM\Column(type: 'string', length: 255)]
private $type;
#[ORM\OneToMany(mappedBy: 'podcastPrivateTask', targetEntity: PodcastPrivateLog::class)]
private $podcastPrivateLogs;
#[ORM\ManyToOne(targetEntity: AccountingFirm::class, inversedBy: 'podcastPrivateTasks')]
private $accountingFirm;
#[ORM\ManyToOne(targetEntity: PodcastEpisode::class, inversedBy: 'podcastPrivateTasks')]
private $podcastEc;
public function __construct()
{
$this->podcastPrivateLogs = new ArrayCollection();
}
public function getId(): ?int
{
return $this->id;
}
public function getCreatedAt(): ?\DateTimeImmutable
{
return $this->createdAt;
}
public function setCreatedAt(\DateTimeImmutable $createdAt): self
{
$this->createdAt = $createdAt;
return $this;
}
public function getFinishedAt(): ?\DateTimeImmutable
{
return $this->finishedAt;
}
public function setFinishedAt(?\DateTimeImmutable $finishedAt): self
{
$this->finishedAt = $finishedAt;
return $this;
}
/**
* @return Collection<int, PodcastPrivateLog>
*/
public function getPodcastPrivateLogs(): Collection
{
return $this->podcastPrivateLogs;
}
public function addPodcastPrivateLog(PodcastPrivateLog $podcastPrivateLog): self
{
if (!$this->podcastPrivateLogs->contains($podcastPrivateLog)) {
$this->podcastPrivateLogs[] = $podcastPrivateLog;
$podcastPrivateLog->setPodcastPrivateTask($this);
}
return $this;
}
public function removePodcastPrivateLog(PodcastPrivateLog $podcastPrivateLog): self
{
if ($this->podcastPrivateLogs->removeElement($podcastPrivateLog)) {
// set the owning side to null (unless already changed)
if ($podcastPrivateLog->getPodcastPrivateTask() === $this) {
$podcastPrivateLog->setPodcastPrivateTask(null);
}
}
return $this;
}
public function getPodcastPrivate(): ?PodcastPrivate
{
return $this->PodcastPrivate;
}
public function setPodcastPrivate(?PodcastPrivate $PodcastPrivate): self
{
$this->PodcastPrivate = $PodcastPrivate;
return $this;
}
public function getType(): ?string
{
return $this->type;
}
public function setType(string $type): self
{
$this->type = $type;
return $this;
}
public function getStatusAudio(): ?string
{
return $this->statusAudio;
}
public function setStatusAudio(?string $statusAudio): self
{
$this->statusAudio = $statusAudio;
return $this;
}
public function getStatusAusha(): ?string
{
return $this->statusAusha;
}
public function setStatusAusha(?string $statusAusha): self
{
$this->statusAusha = $statusAusha;
return $this;
}
public function getAccountingFirm(): ?AccountingFirm
{
return $this->accountingFirm;
}
public function setAccountingFirm(?AccountingFirm $accountingFirm): self
{
$this->accountingFirm = $accountingFirm;
return $this;
}
public function getPodcastEc(): ?PodcastEpisode
{
return $this->podcastEc;
}
public function setPodcastEc(?PodcastEpisode $podcastEc): self
{
$this->podcastEc = $podcastEc;
return $this;
}
}