<?phpnamespace App\Entity\Menu;use Doctrine\DBAL\Types\Types;use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;use Symfony\Component\Validator\Constraints as Assert;use Doctrine\ORM\Mapping as ORM;/** * Website Parents * * @ORM\Table("menu_website_parents") * @ORM\Entity(repositoryClass="App\Repository\Menu\WebsiteParentsRepository") * @ORM\HasLifecycleCallbacks() */class WebsiteParents{ /** * @var integer * * @ORM\Column(name="id", type="integer") * @ORM\Id * @ORM\GeneratedValue(strategy="AUTO") */ protected $id; /** * @var string * * @ORM\Column(name="created_at", type="datetime", nullable=true, options={"comment":"Date de création"}) */ private $createdAt; /** * @var string * * @ORM\Column(name="title", type="string", length=255, nullable=true) */ private $title; /** * @var string * * @ORM\Column(name="link", type="string", length=255, nullable=true) */ private $link; /** * @var string * * @ORM\Column(name="visibility", type="boolean", nullable=true) */ private $visibility; /** * @var string * * @ORM\Column(name="target_blank", type="boolean", nullable=true) */ private $targetBlank; /** * @var string * * @ORM\Column(name="type", type="string", length=255, nullable=true) */ private $type; /** * @var string $filename * * @ORM\Column(name="sequence", type="integer", length=11, nullable=true) */ protected $sequence; /** * @var string * * @ORM\Column(name="typeButton", type="string", length=255, nullable=true) */ private $typeButton; /** * @var string * * @ORM\Column(name="visibilityUser", type="boolean", nullable=true) */ private $visibilityUser; /** * @var string * * @ORM\Column(name="private", type="boolean", nullable=true) */ private $private; /** * @var string * * @ORM\Column(name="no_private", type="boolean", nullable=true) */ private $noPrivate; /** * @var string * * @ORM\Column(name="website", type="boolean", nullable=true) */ private $website; /** * @var string * * @ORM\Column(name="recruiter", type="boolean", nullable=true) */ private $recruiter; /** * @var string * * @ORM\Column(name="company", type="boolean", nullable=true) */ private $company; /** * @var string * * @ORM\Column(name="langue", type="string", length=255, nullable=true) */ private $language; /** * @ORM\PrePersist */ public function setCreatedAtValue(): void { $this->setCreatedAt(new \DateTime("now")); } /** * @ORM\PreUpdate */ public function setUpdatedAtValue(): void { } public function __toString() { return $this->title; } public function getId(): ?int { return $this->id; } public function getCreatedAt(): ?\DateTimeInterface { return $this->createdAt; } public function setCreatedAt(?\DateTimeInterface $createdAt): self { $this->createdAt = $createdAt; return $this; } public function getTitle(): ?string { return $this->title; } public function setTitle(?string $title): self { $this->title = $title; return $this; } public function getLink(): ?string { return $this->link; } public function setLink(?string $link): self { $this->link = $link; return $this; } public function getSequence(): ?int { return $this->sequence; } public function setSequence(?int $sequence): self { $this->sequence = $sequence; return $this; } public function getType(): ?string { return $this->type; } public function setType(?string $type): self { $this->type = $type; return $this; } public function getTargetBlank(): ?bool { return $this->targetBlank; } public function setTargetBlank(?bool $targetBlank): self { $this->targetBlank = $targetBlank; return $this; } public function getTypeButton(): ?string { return $this->typeButton; } public function setTypeButton(?string $typeButton): self { $this->typeButton = $typeButton; return $this; } public function getVisibilityUser(): ?bool { return $this->visibilityUser; } public function setVisibilityUser(?bool $visibilityUser): self { $this->visibilityUser = $visibilityUser; return $this; } public function getVisibility(): ?bool { return $this->visibility; } public function setVisibility(?bool $visibilityUser): self { $this->visibility = $visibilityUser; return $this; } public function getNoPrivate(): ?bool { return $this->noPrivate; } public function setNoPrivate(?bool $visibilityUser): self { $this->noPrivate = $visibilityUser; return $this; } public function getPrivate(): ?bool { return $this->private; } public function setPrivate(?bool $visibilityUser): self { $this->private = $visibilityUser; return $this; } public function getWebsite(): ?bool { return $this->website; } public function setWebsite(?bool $website): self { $this->website = $website; return $this; } public function getRecruiter(): ?bool { return $this->recruiter; } public function setRecruiter(?bool $recruiter): self { $this->recruiter = $recruiter; return $this; } public function getCompany(): ?bool { return $this->company; } public function setCompany(?bool $company): self { $this->company = $company; return $this; } public function isVisibility(): ?bool { return $this->visibility; } public function isTargetBlank(): ?bool { return $this->targetBlank; } public function isVisibilityUser(): ?bool { return $this->visibilityUser; } public function isPrivate(): ?bool { return $this->private; } public function isNoPrivate(): ?bool { return $this->noPrivate; } public function isWebsite(): ?bool { return $this->website; } public function isRecruiter(): ?bool { return $this->recruiter; } public function isCompany(): ?bool { return $this->company; } public function getLanguage(): ?string { return $this->language; } public function setLanguage(?string $language): self { $this->language = $language; return $this; }}