<?php
namespace App\Entity;
use App\Entity\Enum\StoreSpecialityEnum;
use App\Repository\StoreSpecialityRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=StoreSpecialityRepository::class)
*/
class StoreSpeciality
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $value;
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 StoreSpecialityEnum::getName($this->value);
}
}