src/Entity/Heroes.php line 15
<?phpnamespace App\Entity;use App\Entity\Trait\MainTranslationTrait;use App\Entity\Translation\HeroesTranslation;use App\Repository\HeroesRepository;use Doctrine\ORM\Mapping as ORM;use Gedmo\Mapping\Annotation as Gedmo;use Gedmo\Translatable\Translatable;#[ORM\Table(name: 'heroes')]#[ORM\Entity(repositoryClass: HeroesRepository::class)]#[Gedmo\TranslationEntity(class: HeroesTranslation::class)]class Heroes implements Translatable{use MainTranslationTrait;const TRANSLATION_ENTITY = HeroesTranslation::class;#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;public function getId(): ?int{return $this->id;}#[ORM\Column(type: 'string', nullable: true)]#[Gedmo\Translatable]private ?string $title = null;#[ORM\Column(type: 'text', nullable: true)]#[Gedmo\Translatable]private ?string $description = null;#[ORM\Column(type: 'string', nullable: true)]private ?string $image = null;#[ORM\Column(type: 'string', nullable: true)]private ?string $imageMedium = null;#[ORM\Column(type: 'string', nullable: true)]private ?string $imageSmall = null;public function __toString(): string{return $this->title ?? "";}public function getTitle(): ?string{return $this->title;}public function setTitle(?string $title): static{$this->title = $title;return $this;}public function getDescription(): ?string{return $this->description;}public function setDescription(?string $description): void{$this->description = $description;}public function getImage(): ?string{return $this->image;}public function setImage(?string $image): void{$this->image = $image;}public function getImageMedium(): ?string{return $this->imageMedium;}public function setImageMedium(?string $imageMedium): void{$this->imageMedium = $imageMedium;}public function getImageSmall(): ?string{return $this->imageSmall;}public function setImageSmall(?string $imageSmall): void{$this->imageSmall = $imageSmall;}}