src/Entity/Menu/WebsiteParents.php line 17

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Menu;
  3. use Doctrine\DBAL\Types\Types;
  4. use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
  5. use Symfony\Component\Validator\Constraints as Assert;
  6. use Doctrine\ORM\Mapping as ORM;
  7. /**
  8.  * Website Parents
  9.  *
  10.  * @ORM\Table("menu_website_parents")
  11.  * @ORM\Entity(repositoryClass="App\Repository\Menu\WebsiteParentsRepository")
  12.  * @ORM\HasLifecycleCallbacks()
  13.  */
  14. class WebsiteParents
  15. {
  16.     /**
  17.      * @var integer
  18.      *
  19.      * @ORM\Column(name="id", type="integer")
  20.      * @ORM\Id
  21.      * @ORM\GeneratedValue(strategy="AUTO")
  22.      */
  23.     protected $id;
  24.     /**
  25.      * @var string
  26.      *
  27.      * @ORM\Column(name="created_at", type="datetime", nullable=true, options={"comment":"Date de création"})
  28.      */
  29.     private $createdAt;
  30.     /**
  31.      * @var string
  32.      *
  33.      * @ORM\Column(name="title", type="string", length=255, nullable=true)
  34.      */
  35.     private $title;
  36.     /**
  37.      * @var string
  38.      *
  39.      * @ORM\Column(name="link", type="string", length=255, nullable=true)
  40.      */
  41.     private $link;
  42.     /**
  43.      * @var string
  44.      *
  45.      * @ORM\Column(name="visibility", type="boolean", nullable=true)
  46.      */
  47.     private $visibility;
  48.     /**
  49.      * @var string
  50.      *
  51.      * @ORM\Column(name="target_blank", type="boolean", nullable=true)
  52.      */
  53.     private $targetBlank;
  54.     /**
  55.      * @var string
  56.      *
  57.      * @ORM\Column(name="type", type="string", length=255, nullable=true)
  58.      */
  59.     private $type;
  60.     /**
  61.      * @var string $filename
  62.      *
  63.      * @ORM\Column(name="sequence", type="integer", length=11, nullable=true)
  64.      */
  65.     protected $sequence;
  66.     /**
  67.      * @var string
  68.      *
  69.      * @ORM\Column(name="typeButton", type="string", length=255, nullable=true)
  70.      */
  71.     private $typeButton;
  72.     /**
  73.      * @var string
  74.      *
  75.      * @ORM\Column(name="visibilityUser", type="boolean", nullable=true)
  76.      */
  77.     private $visibilityUser;
  78.     /**
  79.      * @var string
  80.      *
  81.      * @ORM\Column(name="private", type="boolean", nullable=true)
  82.      */
  83.     private $private;
  84.     /**
  85.      * @var string
  86.      *
  87.      * @ORM\Column(name="no_private", type="boolean", nullable=true)
  88.      */
  89.     private $noPrivate;
  90.     /**
  91.      * @var string
  92.      *
  93.      * @ORM\Column(name="website", type="boolean", nullable=true)
  94.      */
  95.     private $website;
  96.     /**
  97.      * @var string
  98.      *
  99.      * @ORM\Column(name="recruiter", type="boolean", nullable=true)
  100.      */
  101.     private $recruiter;
  102.     /**
  103.      * @var string
  104.      *
  105.      * @ORM\Column(name="company", type="boolean", nullable=true)
  106.      */
  107.     private $company;
  108.     /**
  109.      * @var string
  110.      *
  111.      * @ORM\Column(name="langue", type="string", length=255, nullable=true)
  112.      */
  113.     private $language;
  114.     /**
  115.      * @var string
  116.      *
  117.      * @ORM\Column(name="menu_html", type="text", nullable=true)
  118.      */
  119.     private $menuHTML;
  120.     /**
  121.      * @ORM\PrePersist
  122.      */
  123.     public function setCreatedAtValue(): void
  124.     {
  125.         $this->setCreatedAt(new \DateTime("now"));
  126.     }
  127.     /**
  128.      * @ORM\PreUpdate
  129.      */
  130.     public function setUpdatedAtValue(): void
  131.     {
  132.     }
  133.     public function __toString()
  134.     {
  135.         return $this->title;
  136.     }
  137.     public function getId(): ?int
  138.     {
  139.         return $this->id;
  140.     }
  141.     public function getCreatedAt(): ?\DateTimeInterface
  142.     {
  143.         return $this->createdAt;
  144.     }
  145.     public function setCreatedAt(?\DateTimeInterface $createdAt): self
  146.     {
  147.         $this->createdAt = $createdAt;
  148.         return $this;
  149.     }
  150.     public function getTitle(): ?string
  151.     {
  152.         return $this->title;
  153.     }
  154.     public function setTitle(?string $title): self
  155.     {
  156.         $this->title = $title;
  157.         return $this;
  158.     }
  159.     public function getLink(): ?string
  160.     {
  161.         return $this->link;
  162.     }
  163.     public function setLink(?string $link): self
  164.     {
  165.         $this->link = $link;
  166.         return $this;
  167.     }
  168.     public function getSequence(): ?int
  169.     {
  170.         return $this->sequence;
  171.     }
  172.     public function setSequence(?int $sequence): self
  173.     {
  174.         $this->sequence = $sequence;
  175.         return $this;
  176.     }
  177.     public function getType(): ?string
  178.     {
  179.         return $this->type;
  180.     }
  181.     public function setType(?string $type): self
  182.     {
  183.         $this->type = $type;
  184.         return $this;
  185.     }
  186.     public function getTargetBlank(): ?bool
  187.     {
  188.         return $this->targetBlank;
  189.     }
  190.     public function setTargetBlank(?bool $targetBlank): self
  191.     {
  192.         $this->targetBlank = $targetBlank;
  193.         return $this;
  194.     }
  195.     public function getTypeButton(): ?string
  196.     {
  197.         return $this->typeButton;
  198.     }
  199.     public function setTypeButton(?string $typeButton): self
  200.     {
  201.         $this->typeButton = $typeButton;
  202.         return $this;
  203.     }
  204.     public function getVisibilityUser(): ?bool
  205.     {
  206.         return $this->visibilityUser;
  207.     }
  208.     public function setVisibilityUser(?bool $visibilityUser): self
  209.     {
  210.         $this->visibilityUser = $visibilityUser;
  211.         return $this;
  212.     }
  213.     public function getVisibility(): ?bool
  214.     {
  215.         return $this->visibility;
  216.     }
  217.     public function setVisibility(?bool $visibilityUser): self
  218.     {
  219.         $this->visibility = $visibilityUser;
  220.         return $this;
  221.     }
  222.     public function getNoPrivate(): ?bool
  223.     {
  224.         return $this->noPrivate;
  225.     }
  226.     public function setNoPrivate(?bool $visibilityUser): self
  227.     {
  228.         $this->noPrivate = $visibilityUser;
  229.         return $this;
  230.     }
  231.     public function getPrivate(): ?bool
  232.     {
  233.         return $this->private;
  234.     }
  235.     public function setPrivate(?bool $visibilityUser): self
  236.     {
  237.         $this->private = $visibilityUser;
  238.         return $this;
  239.     }
  240.     public function getWebsite(): ?bool
  241.     {
  242.         return $this->website;
  243.     }
  244.     public function setWebsite(?bool $website): self
  245.     {
  246.         $this->website = $website;
  247.         return $this;
  248.     }
  249.     public function getRecruiter(): ?bool
  250.     {
  251.         return $this->recruiter;
  252.     }
  253.     public function setRecruiter(?bool $recruiter): self
  254.     {
  255.         $this->recruiter = $recruiter;
  256.         return $this;
  257.     }
  258.     public function getCompany(): ?bool
  259.     {
  260.         return $this->company;
  261.     }
  262.     public function setCompany(?bool $company): self
  263.     {
  264.         $this->company = $company;
  265.         return $this;
  266.     }
  267.     public function isVisibility(): ?bool
  268.     {
  269.         return $this->visibility;
  270.     }
  271.     public function isTargetBlank(): ?bool
  272.     {
  273.         return $this->targetBlank;
  274.     }
  275.     public function isVisibilityUser(): ?bool
  276.     {
  277.         return $this->visibilityUser;
  278.     }
  279.     public function isPrivate(): ?bool
  280.     {
  281.         return $this->private;
  282.     }
  283.     public function isNoPrivate(): ?bool
  284.     {
  285.         return $this->noPrivate;
  286.     }
  287.     public function isWebsite(): ?bool
  288.     {
  289.         return $this->website;
  290.     }
  291.     public function isRecruiter(): ?bool
  292.     {
  293.         return $this->recruiter;
  294.     }
  295.     public function isCompany(): ?bool
  296.     {
  297.         return $this->company;
  298.     }
  299.     public function getLanguage(): ?string
  300.     {
  301.         return $this->language;
  302.     }
  303.     public function setLanguage(?string $language): self
  304.     {
  305.         $this->language = $language;
  306.         return $this;
  307.     }
  308.     public function getMenuHTML(): ?string
  309.     {
  310.         return $this->menuHTML;
  311.     }
  312.     public function setMenuHTML(?string $menuHTML): static
  313.     {
  314.         $this->menuHTML = $menuHTML;
  315.         return $this;
  316.     }
  317. }