<?php
namespace App\Entity;
use App\Entity\Enum\StoreServiceEnum;
use App\Repository\StoreServiceRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=StoreServiceRepository::class)
*/
class StoreService
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="integer")
*/
private $value;
/**
* @ORM\Column(type="string", length=255)
*/
private $iconName;
public function getId(): ?int
{
return $this->id;
}
public function getValue(): ?int
{
return $this->value;
}
public function setValue(int $value): self
{
$this->value = $value;
return $this;
}
public function __toString() {
return StoreServiceEnum::getName($this->value);
}
public function getIconName(): ?string
{
return $this->iconName;
}
public function setIconName(string $iconName): self
{
$this->iconName = $iconName;
return $this;
}
}