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
  62.      *
  63.      * @ORM\Column(name="type_menu", type="string", length=255, nullable=true)
  64.      */
  65.     private $typeMenu;
  66.     /**
  67.      * @var string $filename
  68.      *
  69.      * @ORM\Column(name="sequence", type="integer", length=11, nullable=true)
  70.      */
  71.     protected $sequence;
  72.     /**
  73.      * @var string
  74.      *
  75.      * @ORM\Column(name="typeButton", type="string", length=255, nullable=true)
  76.      */
  77.     private $typeButton;
  78.     /**
  79.      * @var string
  80.      *
  81.      * @ORM\Column(name="html_submenu", type="text", nullable=true)
  82.      */
  83.     private $submenuHTML;
  84.     /**
  85.      * @var string
  86.      *
  87.      * @ORM\Column(name="visibilityUser", type="boolean", nullable=true)
  88.      */
  89.     private $visibilityUser;
  90.     /**
  91.      * @var string
  92.      *
  93.      * @ORM\Column(name="private", type="boolean", nullable=true)
  94.      */
  95.     private $private;
  96.     /**
  97.      * @var string
  98.      *
  99.      * @ORM\Column(name="no_private", type="boolean", nullable=true)
  100.      */
  101.     private $noPrivate;
  102.     /**
  103.      * @var string
  104.      *
  105.      * @ORM\Column(name="locale", type="text", nullable=true)
  106.      */
  107.     private $locale;
  108.     /**
  109.      * @ORM\PrePersist
  110.      */
  111.     public function setCreatedAtValue(): void
  112.     {
  113.         $this->setCreatedAt(new \DateTime("now"));
  114.     }
  115.     /**
  116.      * @ORM\PreUpdate
  117.      */
  118.     public function setUpdatedAtValue(): void
  119.     {
  120.     }
  121.     public function __toString()
  122.     {
  123.         return $this->title;
  124.     }
  125.     public function getId(): ?int
  126.     {
  127.         return $this->id;
  128.     }
  129.     public function getCreatedAt(): ?\DateTimeInterface
  130.     {
  131.         return $this->createdAt;
  132.     }
  133.     public function setCreatedAt(?\DateTimeInterface $createdAt): self
  134.     {
  135.         $this->createdAt $createdAt;
  136.         return $this;
  137.     }
  138.     public function getTitle(): ?string
  139.     {
  140.         return $this->title;
  141.     }
  142.     public function setTitle(?string $title): self
  143.     {
  144.         $this->title $title;
  145.         return $this;
  146.     }
  147.     public function getLink(): ?string
  148.     {
  149.         return $this->link;
  150.     }
  151.     public function setLink(?string $link): self
  152.     {
  153.         $this->link $link;
  154.         return $this;
  155.     }
  156.     public function getSequence(): ?int
  157.     {
  158.         return $this->sequence;
  159.     }
  160.     public function setSequence(?int $sequence): self
  161.     {
  162.         $this->sequence $sequence;
  163.         return $this;
  164.     }
  165.     public function getType(): ?string
  166.     {
  167.         return $this->type;
  168.     }
  169.     public function setType(?string $type): self
  170.     {
  171.         $this->type $type;
  172.         return $this;
  173.     }
  174.     public function getTargetBlank(): ?bool
  175.     {
  176.         return $this->targetBlank;
  177.     }
  178.     public function setTargetBlank(?bool $targetBlank): self
  179.     {
  180.         $this->targetBlank $targetBlank;
  181.         return $this;
  182.     }
  183.     public function getTypeButton(): ?string
  184.     {
  185.         return $this->typeButton;
  186.     }
  187.     public function setTypeButton(?string $typeButton): self
  188.     {
  189.         $this->typeButton $typeButton;
  190.         return $this;
  191.     }
  192.     public function getVisibilityUser(): ?bool
  193.     {
  194.         return $this->visibilityUser;
  195.     }
  196.     public function setVisibilityUser(?bool $visibilityUser): self
  197.     {
  198.         $this->visibilityUser $visibilityUser;
  199.         return $this;
  200.     }
  201.     public function getVisibility(): ?bool
  202.     {
  203.         return $this->visibility;
  204.     }
  205.     public function setVisibility(?bool $visibilityUser): self
  206.     {
  207.         $this->visibility $visibilityUser;
  208.         return $this;
  209.     }
  210.     public function getNoPrivate(): ?bool
  211.     {
  212.         return $this->noPrivate;
  213.     }
  214.     public function setNoPrivate(?bool $visibilityUser): self
  215.     {
  216.         $this->noPrivate $visibilityUser;
  217.         return $this;
  218.     }
  219.     public function getPrivate(): ?bool
  220.     {
  221.         return $this->private;
  222.     }
  223.     public function setPrivate(?bool $visibilityUser): self
  224.     {
  225.         $this->private $visibilityUser;
  226.         return $this;
  227.     }
  228.     public function isVisibility(): ?bool
  229.     {
  230.         return $this->visibility;
  231.     }
  232.     public function isTargetBlank(): ?bool
  233.     {
  234.         return $this->targetBlank;
  235.     }
  236.     public function isVisibilityUser(): ?bool
  237.     {
  238.         return $this->visibilityUser;
  239.     }
  240.     public function isPrivate(): ?bool
  241.     {
  242.         return $this->private;
  243.     }
  244.     public function isNoPrivate(): ?bool
  245.     {
  246.         return $this->noPrivate;
  247.     }
  248.     public function getTypeMenu(): ?string
  249.     {
  250.         return $this->typeMenu;
  251.     }
  252.     public function setTypeMenu(?string $typeMenu): static
  253.     {
  254.         $this->typeMenu $typeMenu;
  255.         return $this;
  256.     }
  257.     public function getSubmenuHTML(): ?string
  258.     {
  259.         return $this->submenuHTML;
  260.     }
  261.     public function setSubmenuHTML(?string $submenuHTML): static
  262.     {
  263.         $this->submenuHTML $submenuHTML;
  264.         return $this;
  265.     }
  266.     public function getLocale(): ?string
  267.     {
  268.         return $this->locale;
  269.     }
  270.     public function setLocale(?string $type): self
  271.     {
  272.         $this->locale $type;
  273.         return $this;
  274.     }
  275. }