src/Entity/Media.php line 16

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\MediaRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Symfony\Component\Serializer\Annotation\Groups;
  6. /**
  7.  *
  8.  * Media
  9.  * @ORM\Table()
  10.  * @ORM\Entity()
  11.  *
  12.  */
  13. class Media
  14. {
  15.     /**
  16.      * @var integer $id
  17.      *
  18.      * @ORM\Id
  19.      * @ORM\Column(type="integer")
  20.      * @ORM\GeneratedValue(strategy="AUTO")
  21.      *
  22.      * @Groups({"read"})
  23.      */
  24.     private ?int $id null;
  25.     public function getId(): ?int
  26.     {
  27.         return $this->id;
  28.     }
  29.     /**
  30.      * @var string
  31.      * @ORM\Column(type="string")
  32.      * @Groups({"read"})
  33.      */
  34.     protected $name;
  35.     /**
  36.      * @var string
  37.      * @ORM\Column(type="string")
  38.      * @Groups({"read"})
  39.      */
  40.     protected $providerName;
  41.     /**
  42.      * @var string
  43.      * @ORM\Column(type="string")
  44.      * @Groups({"read"})
  45.      */
  46.     protected $context;
  47.     /**
  48.      * @var string
  49.      *
  50.      * @ORM\Column(type="string", nullable=true)
  51.      * @Groups({"read"})
  52.      */
  53.     protected $contentType;
  54.     /**
  55.      * @ORM\Column(type="string")
  56.      */
  57.     private $binaryContent;
  58.     public function getName(): ?string
  59.     {
  60.         return $this->name;
  61.     }
  62.     public function setName(string $name): self
  63.     {
  64.         $this->name $name;
  65.         return $this;
  66.     }
  67.     public function getProviderName(): ?string
  68.     {
  69.         return $this->providerName;
  70.     }
  71.     public function setProviderName(string $providerName): self
  72.     {
  73.         $this->providerName $providerName;
  74.         return $this;
  75.     }
  76.     public function getContext(): ?string
  77.     {
  78.         return $this->context;
  79.     }
  80.     public function setContext(string $context): self
  81.     {
  82.         $this->context $context;
  83.         return $this;
  84.     }
  85.     public function getContentType(): ?string
  86.     {
  87.         return $this->contentType;
  88.     }
  89.     public function setContentType(string $contentType): self
  90.     {
  91.         $this->contentType $contentType;
  92.         return $this;
  93.     }
  94.     public function setBinaryContent($binaryContent)
  95.     {
  96.         $this->binaryContent $binaryContent;
  97.     }
  98.     public function getBinaryContent()
  99.     {
  100.         return $this->binaryContent;
  101.     }
  102. }