<?php
namespace App\Entity;
use App\Repository\ExtraTypeRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: ExtraTypeRepository::class)]
class ExtraType
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 255)]
private ?string $name = null;
#[ORM\OneToOne(cascade: ['persist', 'remove'])]
private ?FileData $image = null;
public function getId(): ?int
{
return $this->id;
}
public function getName(): ?string
{
return $this->name;
}
public function setName(string $name): static
{
$this->name = $name;
return $this;
}
public function getImage(): ?FileData
{
return $this->image;
}
public function setImage(?FileData $image): static
{
$this->image = $image;
return $this;
}
public function __toString(): string
{
return $this->name;
}
}