src/Entity/IceCream.php line 15
<?phpnamespace App\Entity;use App\Entity\Trait\MainTranslationTrait;use App\Entity\Translation\IceCreamTranslation;use App\Repository\IceCreamRepository;use Doctrine\ORM\Mapping as ORM;use Gedmo\Translatable\Translatable;use Gedmo\Mapping\Annotation as Gedmo;#[ORM\Table(name: 'ice_cream')]#[ORM\Entity(repositoryClass: IceCreamRepository::class)]#[Gedmo\TranslationEntity(class:IceCreamTranslation::class)]class IceCream implements Translatable{use MainTranslationTrait;const TRANSLATION_ENTITY = IceCreamTranslation::class;#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\Column(type: 'string', nullable: true)]private ?string $color = null;#[ORM\Column(type: 'string', nullable: true)]private ?string $image = null;#[ORM\Column(type: 'string', nullable: true)]#[Gedmo\Translatable]private ?string $title = null;#[ORM\Column(type: 'text', nullable: true)]#[Gedmo\Translatable]private ?string $body = null;public function __toString(): string{return $this->title ?? "";}public function getId(): ?int{return $this->id;}public function getImage(): ?string{return $this->image;}public function setImage(?string $image): void{$this->image = $image;}public function getTitle(): ?string{return $this->title;}public function setTitle(?string $title): void{$this->title = $title;}public function getBody(): ?string{return $this->body;}public function setBody(?string $body): void{$this->body = $body;}public function getColor(): ?string{return $this->color;}public function setColor(?string $color): void{$this->color = $color;}}