<?phpnamespace App\Entity;use Doctrine\ORM\Mapping as ORM;use Gedmo\Mapping\Annotation as Gedmo;use Symfony\Component\Serializer\Annotation\Groups;use Symfony\Component\Validator\Constraints as Assert;/** * @ORM\Entity() * * @ORM\Table(name="sale_event_title") */class SaleEventTitle{ /** * @ORM\Id * * @ORM\Column(type="bigint") * * @ORM\GeneratedValue(strategy="AUTO") */ protected $id; /** * @ORM\Column(type="string") * * @Gedmo\Translatable * * @Groups({"read", "read_sale_event"}) * * @Assert\NotBlank(groups={"api_iridium_sale"}) */ protected $name; /** * Locale. * * @Gedmo\Locale */ protected $locale; public function __construct( /** * @ORM\Column(type="string") * * @Assert\NotBlank(groups={"api_iridium_sale"}) */ protected $code = null ) { } /** * Get id. * * @return id */ public function getId() { return $this->id; } /** * Get Code. * * @return code */ public function getCode() { return $this->code; } /** * Set code. * * @param code the value to set */ public function setCode($code): void { $this->code = $code; } /** * Get name. * * @return name */ public function getName() { return $this->name; } /** * Set name. * * @param name the value to set */ public function setName($name): void { $this->name = $name; } public function setTranslatableLocale($locale): void { $this->locale = $locale; }}