src/Entity/Page.php line 17
<?phpnamespace App\Entity;use App\Entity\Trait\MainTranslationTrait;use App\Entity\Translation\PageTranslation;use App\Repository\PageRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\DBAL\Types\Types;use Gedmo\Mapping\Annotation as Gedmo;use Doctrine\ORM\Mapping as ORM;use Gedmo\Translatable\Translatable;#[Gedmo\TranslationEntity(class: self::TRANSLATION_ENTITY)]#[ORM\Entity(repositoryClass: PageRepository::class)]class Page implements Translatable{use MainTranslationTrait;const TRANSLATION_ENTITY = PageTranslation::class;#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\OneToMany(mappedBy: 'page', targetEntity: UserTemplate::class, cascade: ["persist", "remove"])]protected ?Collection $userTemplate = null;#[ORM\OneToMany(mappedBy: 'page', targetEntity: FinancialPart::class, cascade: ["persist", "remove"])]protected ?Collection $financialPart = null;#[ORM\Column(type: 'string', nullable: true)]private ?string $name = null;#[ORM\Column(type: 'string', nullable: true)]private ?string $keyWord = null;#[Gedmo\Slug(fields: ['name'], updatable: false)]#[ORM\Column(type: 'string', unique: true, nullable: true)]private string $slug;#[ORM\Column(type: 'string', nullable: true)]#[Gedmo\Translatable]private ?string $location = null;#[ORM\Column(type: 'text', nullable: true)]private ?string $description = null;#[ORM\Column(type: 'string', nullable: true)]private ?string $date = null;#[ORM\Column(type: 'string', nullable: true)]private ?string $image = null;#[ORM\Column(type: 'string', nullable: true,length: 1000)]#[Gedmo\Translatable]private ?string $imageText = null;#[ORM\Column(type: 'string', nullable: true)]#[Gedmo\Translatable]private ?string $firstColumnTitle = null;#[ORM\Column(type: 'text', nullable: true)]#[Gedmo\Translatable]private ?string $firstColumnText = null;#[ORM\Column(type: 'string', nullable: true)]#[Gedmo\Translatable]private ?string $firstColumnImage = null;#[ORM\Column(type: 'string', nullable: true)]#[Gedmo\Translatable]private ?string $firstColumnSecondTitle = null;#[Gedmo\Translatable]#[ORM\Column(type: 'text', nullable: true)]private ?string $firstColumnSecondText = null;#[ORM\Column(type: 'string', nullable: true)]#[Gedmo\Translatable]private ?string $firstColumnSecondImage = null;#[ORM\Column(type: 'string', nullable: true)]#[Gedmo\Translatable]private ?string $secondColumnTitle = null;#[ORM\Column(type: 'text', nullable: true)]#[Gedmo\Translatable]private ?string $secondColumnText = null;#[ORM\Column(type: 'string', nullable: true)]#[Gedmo\Translatable]private ?string $secondColumnImage = null;#[Gedmo\Translatable]#[ORM\Column(type: 'string', nullable: true)]private ?string $secondColumSecondTitle = null;#[ORM\Column(type: 'text', nullable: true)]#[Gedmo\Translatable]private ?string $secondColumnSecondText = null;#[ORM\Column(type: 'string', nullable: true)]#[Gedmo\Translatable]private ?string $secondColumnSecondImage = null;#[ORM\Column(type: 'string', nullable: true)]#[Gedmo\Translatable]private ?string $thirdColumnTitle = null;#[ORM\Column(type: 'text', nullable: true)]#[Gedmo\Translatable]private ?string $thirdColumnText = null;#[ORM\Column(type: 'string', nullable: true)]#[Gedmo\Translatable]private ?string $thirdColumnImage = null;#[ORM\Column(type: 'string', nullable: true)]#[Gedmo\Translatable]private ?string $thirdColumnSecondTitle = null;#[ORM\Column(type: 'text', nullable: true)]#[Gedmo\Translatable]private ?string $thirdColumnSecondText = null;#[ORM\Column(type: 'string', nullable: true)]#[Gedmo\Translatable]private ?string $thirdColumnSecondImage = null;#[Gedmo\Translatable]#[ORM\Column(type: 'string', nullable: true)]private ?string $fourthColumnTitle = null;#[Gedmo\Translatable]#[ORM\Column(type: 'text', nullable: true)]private ?string $fourthColumnText = null;#[ORM\Column(type: 'string', nullable: true)]#[Gedmo\Translatable]private ?string $fourthColumnImage = null;#[Gedmo\Translatable]#[ORM\Column(type: 'string', nullable: true)]private ?string $fourthColumnSecondTitle = null;#[Gedmo\Translatable]#[ORM\Column(type: 'text', nullable: true)]private ?string $fourthColumnSecondText = null;#[ORM\Column(type: 'string', nullable: true)]#[Gedmo\Translatable]private ?string $fourthColumnSecondImage = null;#[ORM\Column(type: 'string', nullable: true)]private ?string $templateCountry = null;public function __toString(): string{if ($this->name){return $this->name;}else{return '';}}public function getId(): ?int{return $this->id;}public function __construct(){$this->userTemplate = new ArrayCollection();$this->financialPart = new ArrayCollection();}/*** @return string|null*/public function getImage(): ?string{return $this->image;}/*** @param string|null $image*/public function setImage(?string $image): void{$this->image = $image;}/*** @return string|null*/public function getImageText(): ?string{return $this->imageText;}/*** @param string|null $imageText*/public function setImageText(?string $imageText): void{$this->imageText = $imageText;}/*** @return string|null*/public function getFirstColumnTitle(): ?string{return $this->firstColumnTitle;}/*** @param string|null $firstColumnTitle*/public function setFirstColumnTitle(?string $firstColumnTitle): void{$this->firstColumnTitle = $firstColumnTitle;}/*** @return string|null*/public function getFirstColumnText(): ?string{return $this->firstColumnText;}/*** @param string|null $firstColumnText*/public function setFirstColumnText(?string $firstColumnText): void{$this->firstColumnText = $firstColumnText;}/*** @return string|null*/public function getSecondColumnTitle(): ?string{return $this->secondColumnTitle;}/*** @param string|null $secondColumnTitle*/public function setSecondColumnTitle(?string $secondColumnTitle): void{$this->secondColumnTitle = $secondColumnTitle;}/*** @return string|null*/public function getSecondColumnText(): ?string{return $this->secondColumnText;}/*** @param string|null $secondColumnText*/public function setSecondColumnText(?string $secondColumnText): void{$this->secondColumnText = $secondColumnText;}/*** @return string|null*/public function getFirstColumnImage(): ?string{return $this->firstColumnImage;}/*** @param string|null $firstColumnImage*/public function setFirstColumnImage(?string $firstColumnImage): void{$this->firstColumnImage = $firstColumnImage;}/*** @return string|null*/public function getSecondColumnImage(): ?string{return $this->secondColumnImage;}/*** @param string|null $secondColumnImage*/public function setSecondColumnImage(?string $secondColumnImage): void{$this->secondColumnImage = $secondColumnImage;}/*** @return string|null*/public function getThirdColumTitle(): ?string{return $this->thirdColumTitle;}/*** @param string|null $thirdColumTitle*/public function setThirdColumTitle(?string $thirdColumTitle): void{$this->thirdColumTitle = $thirdColumTitle;}/*** @return string|null*/public function getThirdColumText(): ?string{return $this->thirdColumText;}/*** @param string|null $thirdColumText*/public function setThirdColumText(?string $thirdColumText): void{$this->thirdColumText = $thirdColumText;}/*** @return string|null*/public function getThirdColumnImage(): ?string{return $this->thirdColumnImage;}/*** @param string|null $thirdColumnImage*/public function setThirdColumnImage(?string $thirdColumnImage): void{$this->thirdColumnImage = $thirdColumnImage;}/*** @return string|null*/public function getFourthColumTitle(): ?string{return $this->fourthColumTitle;}/*** @param string|null $fourthColumTitle*/public function setFourthColumTitle(?string $fourthColumTitle): void{$this->fourthColumTitle = $fourthColumTitle;}/*** @return string|null*/public function getFourthColumText(): ?string{return $this->fourthColumText;}/*** @param string|null $fourthColumText*/public function setFourthColumText(?string $fourthColumText): void{$this->fourthColumText = $fourthColumText;}/*** @return string|null*/public function getFourthColumnImage(): ?string{return $this->fourthColumnImage;}/*** @param string|null $fourthColumnImage*/public function setFourthColumnImage(?string $fourthColumnImage): void{$this->fourthColumnImage = $fourthColumnImage;}/*** @return string|null*/public function getFirstColumnSecondTitle(): ?string{return $this->firstColumnSecondTitle;}/*** @param string|null $firstColumnSecondTitle*/public function setFirstColumnSecondTitle(?string $firstColumnSecondTitle): void{$this->firstColumnSecondTitle = $firstColumnSecondTitle;}/*** @return string|null*/public function getFirstColumnSecondText(): ?string{return $this->firstColumnSecondText;}/*** @param string|null $firstColumnSecondText*/public function setFirstColumnSecondText(?string $firstColumnSecondText): void{$this->firstColumnSecondText = $firstColumnSecondText;}/*** @return string|null*/public function getFirstColumnSecondImage(): ?string{return $this->firstColumnSecondImage;}/*** @param string|null $firstColumnSecondImage*/public function setFirstColumnSecondImage(?string $firstColumnSecondImage): void{$this->firstColumnSecondImage = $firstColumnSecondImage;}/*** @return string|null*/public function getSecondColumSecondTitle(): ?string{return $this->secondColumSecondTitle;}/*** @param string|null $secondColumSecondTitle*/public function setSecondColumSecondTitle(?string $secondColumSecondTitle): void{$this->secondColumSecondTitle = $secondColumSecondTitle;}/*** @return string|null*/public function getSecondColumSecondText(): ?string{return $this->secondColumSecondText;}/*** @param string|null $secondColumSecondText*/public function setSecondColumSecondText(?string $secondColumSecondText): void{$this->secondColumSecondText = $secondColumSecondText;}/*** @return string|null*/public function getSecondColumnSecondImage(): ?string{return $this->secondColumnSecondImage;}/*** @param string|null $secondColumnSecondImage*/public function setSecondColumnSecondImage(?string $secondColumnSecondImage): void{$this->secondColumnSecondImage = $secondColumnSecondImage;}/*** @return string|null*/public function getThirdColumSecondTitle(): ?string{return $this->thirdColumSecondTitle;}/*** @param string|null $thirdColumSecondTitle*/public function setThirdColumSecondTitle(?string $thirdColumSecondTitle): void{$this->thirdColumSecondTitle = $thirdColumSecondTitle;}/*** @return string|null*/public function getThirdColumSecondText(): ?string{return $this->thirdColumSecondText;}/*** @param string|null $thirdColumSecondText*/public function setThirdColumSecondText(?string $thirdColumSecondText): void{$this->thirdColumSecondText = $thirdColumSecondText;}/*** @return string|null*/public function getThirdColumnSecondImage(): ?string{return $this->thirdColumnSecondImage;}/*** @param string|null $thirdColumnSecondImage*/public function setThirdColumnSecondImage(?string $thirdColumnSecondImage): void{$this->thirdColumnSecondImage = $thirdColumnSecondImage;}/*** @return string|null*/public function getFourthColumSecondTitle(): ?string{return $this->fourthColumSecondTitle;}/*** @param string|null $fourthColumSecondTitle*/public function setFourthColumSecondTitle(?string $fourthColumSecondTitle): void{$this->fourthColumSecondTitle = $fourthColumSecondTitle;}/*** @return string|null*/public function getFourthColumSecondText(): ?string{return $this->fourthColumSecondText;}/*** @param string|null $fourthColumSecondText*/public function setFourthColumSecondText(?string $fourthColumSecondText): void{$this->fourthColumSecondText = $fourthColumSecondText;}/*** @return string|null*/public function getFourthColumnSecondImage(): ?string{return $this->fourthColumnSecondImage;}/*** @param string|null $fourthColumnSecondImage*/public function setFourthColumnSecondImage(?string $fourthColumnSecondImage): void{$this->fourthColumnSecondImage = $fourthColumnSecondImage;}public function getSecondColumnSecondText(): ?string{return $this->secondColumnSecondText;}public function setSecondColumnSecondText(?string $secondColumnSecondText): static{$this->secondColumnSecondText = $secondColumnSecondText;return $this;}public function getThirdColumnTitle(): ?string{return $this->thirdColumnTitle;}public function setThirdColumnTitle(?string $thirdColumnTitle): static{$this->thirdColumnTitle = $thirdColumnTitle;return $this;}/*** @return string|null*/public function getLocation(): ?string{return $this->location;}/*** @param string|null $location*/public function setLocation(?string $location): void{$this->location = $location;}public function getThirdColumnText(): ?string{return $this->thirdColumnText;}public function setThirdColumnText(?string $thirdColumnText): static{$this->thirdColumnText = $thirdColumnText;return $this;}public function getThirdColumnSecondTitle(): ?string{return $this->thirdColumnSecondTitle;}public function setThirdColumnSecondTitle(?string $thirdColumnSecondTitle): static{$this->thirdColumnSecondTitle = $thirdColumnSecondTitle;return $this;}public function getThirdColumnSecondText(): ?string{return $this->thirdColumnSecondText;}public function setThirdColumnSecondText(?string $thirdColumnSecondText): static{$this->thirdColumnSecondText = $thirdColumnSecondText;return $this;}public function getFourthColumnTitle(): ?string{return $this->fourthColumnTitle;}public function setFourthColumnTitle(?string $fourthColumnTitle): static{$this->fourthColumnTitle = $fourthColumnTitle;return $this;}public function getFourthColumnText(): ?string{return $this->fourthColumnText;}public function setFourthColumnText(?string $fourthColumnText): static{$this->fourthColumnText = $fourthColumnText;return $this;}public function getFourthColumnSecondTitle(): ?string{return $this->fourthColumnSecondTitle;}public function setFourthColumnSecondTitle(?string $fourthColumnSecondTitle): static{$this->fourthColumnSecondTitle = $fourthColumnSecondTitle;return $this;}public function getFourthColumnSecondText(): ?string{return $this->fourthColumnSecondText;}public function setFourthColumnSecondText(?string $fourthColumnSecondText): static{$this->fourthColumnSecondText = $fourthColumnSecondText;return $this;}/*** @return string|null*/public function getName(): ?string{return $this->name;}/*** @param string|null $name*/public function setName(?string $name): void{$this->name = $name;}/*** @return string|null*/public function getDescription(): ?string{return $this->description;}/*** @param string|null $description*/public function setDescription(?string $description): void{$this->description = $description;}/*** @return string|null*/public function getDate(): ?string{return $this->date;}/*** @param string|null $date*/public function setDate(?string $date): void{$this->date = $date;}public function setTranslatableLocale(string $locale): void{$this->locale = $locale;}public function getSlug(): ?string{return $this->slug;}public function setSlug(string $slug): static{$this->slug = $slug;return $this;}/*** @return string|null*/public function getTemplateCountry(): ?string{return $this->templateCountry;}/*** @param string|null $templateCountry*/public function setTemplateCountry(?string $templateCountry): void{$this->templateCountry = $templateCountry;}/*** @return string|null*/public function getKeyWord(): ?string{return $this->keyWord;}/*** @param string|null $keyWord*/public function setKeyWord(?string $keyWord): void{$this->keyWord = $keyWord;}/*** @return Collection<int, UserTemplate>*/public function getUserTemplate(): Collection{return $this->userTemplate;}public function addUserTemplate(UserTemplate $userTemplate): static{if (!$this->userTemplate->contains($userTemplate)) {$this->userTemplate->add($userTemplate);$userTemplate->setPage($this);}return $this;}public function removeUserTemplate(UserTemplate $userTemplate): static{if ($this->userTemplate->removeElement($userTemplate)) {// set the owning side to null (unless already changed)if ($userTemplate->getPage() === $this) {$userTemplate->setPage(null);}}return $this;}/*** @return Collection<int, FinancialPart>*/public function getFinancialPart(): Collection{return $this->financialPart;}public function addFinancialPart(FinancialPart $financialPart): static{if (!$this->financialPart->contains($financialPart)) {$this->financialPart->add($financialPart);$financialPart->setPage($this);}return $this;}public function removeFinancialPart(FinancialPart $financialPart): static{if ($this->financialPart->removeElement($financialPart)) {// set the owning side to null (unless already changed)if ($financialPart->getPage() === $this) {$financialPart->setPage(null);}}return $this;}}