<?phpnamespace App\Entity;use Doctrine\ORM\Mapping as ORM;class GalleryHasMedia { /** * @var int */ private $id; /** * @var \App\Entity\Media */ private $media; /** * @var \App\Entity\Gallery */ private $gallery; /** * @var int */ private $position; /** * @var \DateTime */ private $updatedAt; /** * @var \DateTime */ private $createdAt; /** * @var boolean */ private bool $enabled = false; /** * Get id * * @return integer */ public function getId() { return $this->id; } public function __toString() { return $this->getGallery() . ' | ' . $this->getMedia(); } public function setEnabled($enabled) { $this->enabled = $enabled; } public function getEnabled() { return $this->enabled; } public function setGallery($gallery) { $this->gallery = $gallery; } public function getGallery() { return $this->gallery; } public function setMedia($media) { $this->media = $media; } public function getMedia() { return $this->media; } public function setPosition($position) { $this->position = $position; } public function getPosition() { return $this->position; } public function setUpdatedAt($updatedAt) { $this->updatedAt = $updatedAt; } public function getUpdatedAt() { return $this->updatedAt; } public function setCreatedAt($createdAt) { $this->createdAt = $createdAt; } public function getCreatedAt() { return $this->createdAt; }}