src/Entity/Page.php line 15
<?phpnamespace App\Entity;use App\Entity\Trait\MainTranslationTrait;use App\Entity\Translation\PageTranslation;use App\Repository\PageRepository;use Doctrine\ORM\Mapping as ORM;use Gedmo\Mapping\Annotation as Gedmo;use Gedmo\Translatable\Translatable;#[ORM\Table(name: 'page')]#[ORM\Entity(repositoryClass: PageRepository::class)]#[Gedmo\TranslationEntity(class: PageTranslation::class)]class Page implements Translatable{use MainTranslationTrait;const TRANSLATION_ENTITY = PageTranslation::class;#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\Column(type: 'string',unique: true)]private string $slug;#[ORM\Column(type: 'string', nullable: true)]#[Gedmo\Translatable]private ?string $title = null;#[ORM\Column(type: 'string', nullable: true)]#[Gedmo\Translatable]private ?string $metaTitle = null;#[ORM\Column(type: 'string',length: 160, nullable: true)]#[Gedmo\Translatable]private ?string $metaKeywords = null;#[ORM\Column(type: 'string',length: 160, nullable: true)]#[Gedmo\Translatable]private ?string $metaDescription = null;#[ORM\Column(type: 'text', nullable: true)]#[Gedmo\Translatable]private ?string $body = null;#[ORM\Column(type: 'text', nullable: true)]#[Gedmo\Translatable]private ?string $description = null;#[ORM\Column(type: 'string', nullable: true)]private ?string $image = null;#[ORM\Column(type: 'string', nullable: true)]private ?string $backgroundImage = null;#[ORM\Column(type: 'string', nullable: true)]private ?string $metaImage = null;#[ORM\Column(type: 'string', nullable: true)]#[Gedmo\Translatable]private ?string $file = null;#[ORM\Column(type: 'json', nullable: true)]private ?array $images = null;#[ORM\Column(type: 'string', nullable: true)]private ?string $video = null;#[ORM\Column(type: 'string', nullable: true)]private ?string $pageVideo = null;#[ORM\Column(type: 'string', nullable: true)]private ?string $animation = null;public function getId(): ?int{return $this->id;}public function __toString(): string{return $this->title ?? "";}public function getSlug(): string{return $this->slug;}public function setSlug(string $slug): void{$this->slug = $slug;}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 getDescription(): ?string{return $this->description;}public function setDescription(?string $description): void{$this->description = $description;}public function getImage(): ?string{return $this->image;}public function setImage(?string $image): void{$this->image = $image;}public function getImages(): ?array{return $this->images;}public function setImages(?array $images): void{$this->images = $images;}public function getMetaTitle(): ?string{return $this->metaTitle;}public function setMetaTitle(?string $metaTitle): void{$this->metaTitle = $metaTitle;}public function getMetaKeywords(): ?string{return $this->metaKeywords;}public function setMetaKeywords(?string $metaKeywords): void{$this->metaKeywords = $metaKeywords;}public function getMetaDescription(): ?string{return $this->metaDescription;}public function setMetaDescription(?string $metaDescription): void{$this->metaDescription = $metaDescription;}public function getMetaImage(): ?string{return $this->metaImage;}public function setMetaImage(?string $metaImage): void{$this->metaImage = $metaImage;}public function getBackgroundImage(): ?string{return $this->backgroundImage;}public function setBackgroundImage(?string $backgroundImage): void{$this->backgroundImage = $backgroundImage;}public function getFile(): ?string{return $this->file;}public function setFile(?string $file): void{$this->file = $file;}public function getVideo(): ?string{return $this->video;}public function setVideo(?string $video): void{$this->video = $video;}public function getAnimation(): ?string{return $this->animation;}public function setAnimation(?string $animation): void{$this->animation = $animation;}public function getPageVideo(): ?string{return $this->pageVideo;}public function setPageVideo(?string $pageVideo): void{$this->pageVideo = $pageVideo;}}