<?php
namespace App\Entity;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity()
*/
class GalleryTag
{
/**
* @var int
*
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column
*/
private int $id;
/**
* @var string
*
* @ORM\Column
*/
private string $tag;
/**
* @var Gallery[]|Collection
*
* @ORM\OneToMany(targetEntity=GalleryGalleryTag::class, mappedBy="tag")
*/
private $galleries;
public function __toString()
{
return $this->tag;
}
public function getId(): int
{
return $this->id;
}
public function setId(int $id): GalleryTag
{
$this->id = $id;
return $this;
}
public function getTag(): string
{
return $this->tag;
}
public function setTag(string $tag): GalleryTag
{
$this->tag = $tag;
return $this;
}
public function getGalleries(): Collection
{
return $this->galleries;
}
public function setGalleries(Collection $galleries): GalleryTag
{
$this->galleries = $galleries;
return $this;
}
}