lib/boab/cms-bundle/src/Entity/Media.php line 11

Open in your IDE?
  1. <?php
  2. namespace Boab\CmsBundle\Entity;
  3. use Boab\CmsBundle\Repository\Entity\MediaRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=MediaRepository::class)
  7.  */
  8. class Media implements MediaInterface
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\Column(type="string", length=150)
  18.      */
  19.     private $fileName;
  20.     /**
  21.      * @ORM\Column(type="string", length=100)
  22.      */
  23.     private $memeType;
  24.     /**
  25.      * @ORM\Column(type="datetime")
  26.      */
  27.     private $createdAt;
  28.     /**
  29.      * @ORM\Column(type="datetime", nullable=true)
  30.      */
  31.     private $updatedAt;
  32.     /**
  33.      * @ORM\ManyToOne(targetEntity=Content::class, inversedBy="media")
  34.      */
  35.     private $content;
  36.     public function getId(): ?int
  37.     {
  38.         return $this->id;
  39.     }
  40.     public function getFileName():string
  41.     {
  42.         return $this->fileName;
  43.     }
  44.     public function setFileName(string $fileName): self
  45.     {
  46.         $this->fileName $fileName;
  47.         return $this;
  48.     }
  49.     public function getMemeType(): string
  50.     {
  51.         return $this->memeType;
  52.     }
  53.     public function setMemeType(string $memeType): self
  54.     {
  55.         $this->memeType $memeType;
  56.         return $this;
  57.     }
  58.     public function getCreatedAt():\DateTimeInterface
  59.     {
  60.         return $this->createdAt;
  61.     }
  62.     public function setCreatedAt(\DateTimeInterface $createdAt): self
  63.     {
  64.         $this->createdAt $createdAt;
  65.         return $this;
  66.     }
  67.     public function getUpdatedAt(): ?\DateTimeInterface
  68.     {
  69.         return $this->updatedAt;
  70.     }
  71.     public function setUpdatedAt(?\DateTimeInterface $updatedAt): self
  72.     {
  73.         $this->updatedAt $updatedAt;
  74.         return $this;
  75.     }
  76.     public function getContent(): ?Content
  77.     {
  78.         return $this->content;
  79.     }
  80.     public function setContent(?Content $content): self
  81.     {
  82.         $this->content $content;
  83.         return $this;
  84.     }
  85. }