src/Entity/Audio.php line 19

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\DBAL\Types\Types;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Boab\CmsBundle\Entity\Content;
  6. use App\Entity\AudioInterface;
  7. use Boab\EcommerceBundle\Entity\ProductLineInterface;
  8. use Boab\EcommerceBundle\Entity\ProductLineTrait;
  9. use Symfony\Component\Serializer\Annotation\Ignore;
  10. use Boab\EcommerceBundle\Repository\ProductLineRepository;
  11. /**
  12.  * Audio
  13.  * @ORM\Table(name="audio")
  14.  * @ORM\Entity(repositoryClass=ProductLineRepository::class)
  15.  */
  16. class Audio extends Content implements AudioInterfaceProductLineInterface
  17. {
  18.     use ProductLineTrait;
  19.     /**
  20.      * @Ignore
  21.      * 
  22.      * @ORM\ManyToOne(targetEntity=Artist::class, inversedBy="audios")
  23.      * @ORM\JoinColumn(nullable=false)
  24.      */
  25.     private $artist;
  26.     /**
  27.      * @ORM\Column(type="string", length=10)
  28.      */
  29.     private $duration;
  30.     /**
  31.      * @ORM\Column(type="string", length=255, nullable=true)
  32.      */
  33.     private $featuredBy;
  34.     /**
  35.      * @ORM\Column(type="string", length=255)
  36.      */
  37.     private $producedBy;
  38.     /**
  39.      * @ORM\Column(type="string", length=255, nullable=true)
  40.      */
  41.     private $distributedBy;
  42.     /**
  43.      * @ORM\Column(type="string", length=255)
  44.      */
  45.     private $primaryFile;
  46.     /**
  47.      * @ORM\Column(type="string", length=150, nullable=true)
  48.      */
  49.     private $secondaryFile;
  50.     /**
  51.      * @ORM\Column(type="date", nullable=true)
  52.      */
  53.     private $releasedAt;
  54.     /**
  55.      * @ORM\Column(type="string", length=255, nullable=true)
  56.      */
  57.     private $purchaseUrl;
  58.     /**
  59.      * @ORM\Column(type="string", length=100, nullable=true)
  60.      */
  61.     private $resumableId;    
  62.     public function getArtist(): ?Artist
  63.     {
  64.         return $this->artist;
  65.     }
  66.     public function setArtist(?Artist $artist): self
  67.     {
  68.         $this->artist $artist;
  69.         return $this;
  70.     }
  71.     public function getDuration(): ?string
  72.     {
  73.         return $this->duration;
  74.     }
  75.     public function setDuration(string $duration): self
  76.     {
  77.         $this->duration $duration;
  78.         return $this;
  79.     }
  80.     public function getFeaturedBy(): ?string
  81.     {
  82.         return $this->featuredBy;
  83.     }
  84.     public function setFeaturedBy(?string $featuredBy): self
  85.     {
  86.         $this->featuredBy $featuredBy;
  87.         return $this;
  88.     }
  89.     public function getProducedBy(): ?string
  90.     {
  91.         return $this->producedBy;
  92.     }
  93.     public function setProducedBy(string $producedBy): self
  94.     {
  95.         $this->producedBy $producedBy;
  96.         return $this;
  97.     }
  98.     public function getDistributedBy(): ?string
  99.     {
  100.         return $this->distributedBy;
  101.     }
  102.     public function setDistributedBy(?string $distributedBy): self
  103.     {
  104.         $this->distributedBy $distributedBy;
  105.         return $this;
  106.     }
  107.     public function getPrimaryFile(): ?string
  108.     {
  109.         return $this->primaryFile;
  110.     }
  111.     public function setPrimaryFile(string $primaryFile): self
  112.     {
  113.         $this->primaryFile $primaryFile;
  114.         return $this;
  115.     }
  116.     public function getSecondaryFile(): ?string
  117.     {
  118.         return $this->secondaryFile;
  119.     }
  120.     public function setSecondaryFile(?string $secondaryFile): self
  121.     {
  122.         $this->secondaryFile $secondaryFile;
  123.         return $this;
  124.     }
  125.     public function getReleasedAt(): ?\DateTimeInterface
  126.     {
  127.         return $this->releasedAt;
  128.     }
  129.     public function setReleasedAt(?\DateTimeInterface $releasedAt): self
  130.     {
  131.         $this->releasedAt $releasedAt;
  132.         return $this;
  133.     }
  134.     public function getPurchaseUrl(): ?string
  135.     {
  136.         return $this->purchaseUrl;
  137.     }
  138.     public function setPurchaseUrl(?string $purchaseUrl): self
  139.     {
  140.         $this->purchaseUrl $purchaseUrl;
  141.         return $this;
  142.     }
  143.     public function getResumableId(): ?string
  144.     {
  145.         return $this->resumableId;
  146.     }
  147.     public function setResumableId(?string $resumableId): self
  148.     {
  149.         $this->resumableId $resumableId;
  150.         return $this;
  151.     }
  152.     
  153. }