src/Entity/SpecialOffers.php line 15
<?phpnamespace App\Entity;use App\Entity\Trait\MainTranslationTrait;use App\Entity\Translation\SpecialOffersTranslation;use App\Repository\SpecialOffersRepository;use Doctrine\ORM\Mapping as ORM;use Gedmo\Mapping\Annotation as Gedmo;use Gedmo\Translatable\Translatable;#[ORM\Table(name: 'special_offers')]#[ORM\Entity(repositoryClass: SpecialOffersRepository::class)]#[Gedmo\TranslationEntity(class: SpecialOffersTranslation::class)]class SpecialOffers implements Translatable{use MainTranslationTrait;const TRANSLATION_ENTITY = SpecialOffersTranslation::class;#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\Column(type: 'string', nullable: true)]#[Gedmo\Translatable]private ?string $title = null;#[ORM\Column(type: 'string',unique: true)]#[Gedmo\Slug(fields: ['title'])]private string $slug;#[ORM\Column(type: 'text', nullable: true)]#[Gedmo\Translatable]private ?string $body = null;#[ORM\Column(type: 'text', nullable: true)]#[Gedmo\Translatable]private ?string $additionalInfo = null;#[ORM\Column(type: 'string', nullable: true)]#[Gedmo\Translatable]private ?string $buttonText = null;#[ORM\Column(type: 'string', nullable: true)]private ?string $buttonSlug = null;#[ORM\Column(type: 'string', nullable: true)]#[Gedmo\Translatable]private ?string $image = null;#[ORM\Column(type: 'string', nullable: true)]private ?string $video = null;#[ORM\Column(type: 'string', nullable: true)]private ?string $file = null;public function getId(): ?int{return $this->id;}public function __toString(): string{return $this->title ?? "";}public function getTitle(): ?string{return $this->title;}public function setTitle(?string $title): void{$this->title = $title;}public function getSlug(): string{return $this->slug;}public function setSlug(string $slug): void{$this->slug = $slug;}public function getBody(): ?string{return $this->body;}public function setBody(?string $body): void{$this->body = $body;}public function getImage(): ?string{return $this->image;}public function setImage(?string $image): void{$this->image = $image;}public function getVideo(): ?string{return $this->video;}public function setVideo(?string $video): void{$this->video = $video;}public function getButtonText(): ?string{return $this->buttonText;}public function setButtonText(?string $buttonText): void{$this->buttonText = $buttonText;}public function getButtonSlug(): ?string{return $this->buttonSlug;}public function setButtonSlug(?string $buttonSlug): void{$this->buttonSlug = $buttonSlug;}public function getAdditionalInfo(): ?string{return $this->additionalInfo;}public function setAdditionalInfo(?string $additionalInfo): void{$this->additionalInfo = $additionalInfo;}public function getFile(): ?string{return $this->file;}public function setFile(?string $file): void{$this->file = $file;}}