src/Entity/PodcastPrivateTask.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\PodcastPrivateTaskRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. #[ORM\Entity(repositoryClassPodcastPrivateTaskRepository::class)]
  8. class PodcastPrivateTask
  9. {
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column(type'integer')]
  13.     private $id;
  14.     #[ORM\ManyToOne(targetEntityPodcastPrivate::class, inversedBy'podcastPrivateTasks')]
  15.     private $PodcastPrivate;
  16.     #[ORM\Column(type'datetime_immutable')]
  17.     private $createdAt;
  18.     #[ORM\Column(type'datetime_immutable'nullabletrue)]
  19.     private $finishedAt;
  20.     #[ORM\Column(type'string'length255nullabletrue)]
  21.     private $statusAudio;
  22.     #[ORM\Column(type'string'length255nullabletrue)]
  23.     private $statusAusha;
  24.     #[ORM\Column(type'string'length255)]
  25.     private $type;
  26.     #[ORM\OneToMany(mappedBy'podcastPrivateTask'targetEntityPodcastPrivateLog::class)]
  27.     private $podcastPrivateLogs;
  28.     #[ORM\ManyToOne(targetEntityAccountingFirm::class, inversedBy'podcastPrivateTasks')]
  29.     private $accountingFirm;
  30.     #[ORM\ManyToOne(targetEntityPodcastEpisode::class, inversedBy'podcastPrivateTasks')]
  31.     private $podcastEc;
  32.     public function __construct()
  33.     {
  34.         $this->podcastPrivateLogs = new ArrayCollection();
  35.     }
  36.     public function getId(): ?int
  37.     {
  38.         return $this->id;
  39.     }
  40.     public function getCreatedAt(): ?\DateTimeImmutable
  41.     {
  42.         return $this->createdAt;
  43.     }
  44.     public function setCreatedAt(\DateTimeImmutable $createdAt): self
  45.     {
  46.         $this->createdAt $createdAt;
  47.         return $this;
  48.     }
  49.     public function getFinishedAt(): ?\DateTimeImmutable
  50.     {
  51.         return $this->finishedAt;
  52.     }
  53.     public function setFinishedAt(?\DateTimeImmutable $finishedAt): self
  54.     {
  55.         $this->finishedAt $finishedAt;
  56.         return $this;
  57.     }
  58.     /**
  59.      * @return Collection<int, PodcastPrivateLog>
  60.      */
  61.     public function getPodcastPrivateLogs(): Collection
  62.     {
  63.         return $this->podcastPrivateLogs;
  64.     }
  65.     public function addPodcastPrivateLog(PodcastPrivateLog $podcastPrivateLog): self
  66.     {
  67.         if (!$this->podcastPrivateLogs->contains($podcastPrivateLog)) {
  68.             $this->podcastPrivateLogs[] = $podcastPrivateLog;
  69.             $podcastPrivateLog->setPodcastPrivateTask($this);
  70.         }
  71.         return $this;
  72.     }
  73.     public function removePodcastPrivateLog(PodcastPrivateLog $podcastPrivateLog): self
  74.     {
  75.         if ($this->podcastPrivateLogs->removeElement($podcastPrivateLog)) {
  76.             // set the owning side to null (unless already changed)
  77.             if ($podcastPrivateLog->getPodcastPrivateTask() === $this) {
  78.                 $podcastPrivateLog->setPodcastPrivateTask(null);
  79.             }
  80.         }
  81.         return $this;
  82.     }
  83.     public function getPodcastPrivate(): ?PodcastPrivate
  84.     {
  85.         return $this->PodcastPrivate;
  86.     }
  87.     public function setPodcastPrivate(?PodcastPrivate $PodcastPrivate): self
  88.     {
  89.         $this->PodcastPrivate $PodcastPrivate;
  90.         return $this;
  91.     }
  92.     public function getType(): ?string
  93.     {
  94.         return $this->type;
  95.     }
  96.     public function setType(string $type): self
  97.     {
  98.         $this->type $type;
  99.         return $this;
  100.     }
  101.     public function getStatusAudio(): ?string
  102.     {
  103.         return $this->statusAudio;
  104.     }
  105.     public function setStatusAudio(?string $statusAudio): self
  106.     {
  107.         $this->statusAudio $statusAudio;
  108.         return $this;
  109.     }
  110.     public function getStatusAusha(): ?string
  111.     {
  112.         return $this->statusAusha;
  113.     }
  114.     public function setStatusAusha(?string $statusAusha): self
  115.     {
  116.         $this->statusAusha $statusAusha;
  117.         return $this;
  118.     }
  119.     public function getAccountingFirm(): ?AccountingFirm
  120.     {
  121.         return $this->accountingFirm;
  122.     }
  123.     public function setAccountingFirm(?AccountingFirm $accountingFirm): self
  124.     {
  125.         $this->accountingFirm $accountingFirm;
  126.         return $this;
  127.     }
  128.     public function getPodcastEc(): ?PodcastEpisode
  129.     {
  130.         return $this->podcastEc;
  131.     }
  132.     public function setPodcastEc(?PodcastEpisode $podcastEc): self
  133.     {
  134.         $this->podcastEc $podcastEc;
  135.         return $this;
  136.     }
  137. }