<?phpnamespace App\Entity;use App\Repository\MediaRepository;use Doctrine\ORM\Mapping as ORM;use Symfony\Component\Serializer\Annotation\Groups;/** * * Media * @ORM\Table() * @ORM\Entity() * */class Media{ /** * @var integer $id * * @ORM\Id * @ORM\Column(type="integer") * @ORM\GeneratedValue(strategy="AUTO") * * @Groups({"read"}) */ private ?int $id = null; public function getId(): ?int { return $this->id; } /** * @var string * @ORM\Column(type="string") * @Groups({"read"}) */ protected $name; /** * @var string * @ORM\Column(type="string") * @Groups({"read"}) */ protected $providerName; /** * @var string * @ORM\Column(type="string") * @Groups({"read"}) */ protected $context; /** * @var string * * @ORM\Column(type="string", nullable=true) * @Groups({"read"}) */ protected $contentType; /** * @ORM\Column(type="string") */ private $binaryContent; public function getName(): ?string { return $this->name; } public function setName(string $name): self { $this->name = $name; return $this; } public function getProviderName(): ?string { return $this->providerName; } public function setProviderName(string $providerName): self { $this->providerName = $providerName; return $this; } public function getContext(): ?string { return $this->context; } public function setContext(string $context): self { $this->context = $context; return $this; } public function getContentType(): ?string { return $this->contentType; } public function setContentType(string $contentType): self { $this->contentType = $contentType; return $this; } public function setBinaryContent($binaryContent) { $this->binaryContent = $binaryContent; } public function getBinaryContent() { return $this->binaryContent; }}