src/Entity/Link.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * @ORM\Entity
  6.  */
  7. class Link
  8. {
  9.     public const AREA_INVOICE_PROCEDURE 'invoice_procedure';
  10.     public const AREA_INVOICE_INFORMATION 'invoice_information';
  11.     public const AREA_CONTRACT 'contract';
  12.     public const AREA_MY_ACCOUNT 'my_account';
  13.     public const AREA_DASHBOARD 'dashboard';
  14.     /**
  15.      * @ORM\Id
  16.      * @ORM\GeneratedValue
  17.      * @ORM\Column(type="integer")
  18.      *
  19.      * @var int
  20.      */
  21.     protected $id;
  22.     /**
  23.      * @ORM\Column(type="string")
  24.      *
  25.      * @var string
  26.      */
  27.     protected $label;
  28.     /**
  29.      * @ORM\Column(type="string")
  30.      *
  31.      * @var string
  32.      */
  33.     protected $url;
  34.     /**
  35.      * @ORM\Column(type="boolean")
  36.      */
  37.     protected $targetBlank false;
  38.     /**
  39.      * @ORM\Column(type="array")
  40.      *
  41.      * @var array
  42.      */
  43.     protected $areas = [];
  44.     /**
  45.      * @ORM\Column(type="array")
  46.      *
  47.      * @var array
  48.      */
  49.     protected $accessRestrictions = [];
  50.     /**
  51.      * @ORM\Column(type="integer")
  52.      *
  53.      * @var int
  54.      */
  55.     protected $priority 0;
  56.     public function getId(): ?int
  57.     {
  58.         return $this->id;
  59.     }
  60.     /**
  61.      * @return Link
  62.      */
  63.     public function setId(int $id): self
  64.     {
  65.         $this->id $id;
  66.         return $this;
  67.     }
  68.     public function getLabel(): ?string
  69.     {
  70.         return $this->label;
  71.     }
  72.     /**
  73.      * @return Link
  74.      */
  75.     public function setLabel(string $label): self
  76.     {
  77.         $this->label $label;
  78.         return $this;
  79.     }
  80.     public function getUrl(): ?string
  81.     {
  82.         return $this->url;
  83.     }
  84.     /**
  85.      * @return Link
  86.      */
  87.     public function setUrl(string $url): self
  88.     {
  89.         $this->url $url;
  90.         return $this;
  91.     }
  92.     public function getTargetBlank(): bool
  93.     {
  94.         return $this->targetBlank;
  95.     }
  96.     public function setTargetBlank(bool $targetBlank): self
  97.     {
  98.         $this->targetBlank $targetBlank;
  99.         return $this;
  100.     }
  101.     public function getAreas(): array
  102.     {
  103.         return $this->areas;
  104.     }
  105.     /**
  106.      * @return Link
  107.      */
  108.     public function setAreas(array $areas): self
  109.     {
  110.         $this->areas $areas;
  111.         return $this;
  112.     }
  113.     public function getAccessRestrictions(): array
  114.     {
  115.         return $this->accessRestrictions;
  116.     }
  117.     /**
  118.      * @return Link
  119.      */
  120.     public function setAccessRestrictions(array $accessRestrictions): self
  121.     {
  122.         $this->accessRestrictions $accessRestrictions;
  123.         return $this;
  124.     }
  125.     public function getPriority(): int
  126.     {
  127.         return $this->priority;
  128.     }
  129.     /**
  130.      * @return Link
  131.      */
  132.     public function setPriority(int $priority): self
  133.     {
  134.         $this->priority $priority;
  135.         return $this;
  136.     }
  137. }