src/Entity/SCPLink.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 SCPLink
  8. {
  9.     /**
  10.      * @ORM\Id
  11.      * @ORM\GeneratedValue
  12.      * @ORM\Column(type="integer")
  13.      *
  14.      * @var int
  15.      */
  16.     protected $id;
  17.     /**
  18.      * @ORM\Column(type="string")
  19.      *
  20.      * @var string
  21.      */
  22.     protected $transKey;
  23.     /**
  24.      * @ORM\Column(type="string")
  25.      *
  26.      * @var string
  27.      */
  28.     protected $url;
  29.     /**
  30.      * @ORM\Column(type="string")
  31.      *
  32.      * @var string
  33.      */
  34.     protected $label;
  35.     /**
  36.      * @ORM\Column(type="string")
  37.      *
  38.      * @var string
  39.      */
  40.     protected $area;
  41.     /**
  42.      * @ORM\Column(type="boolean")
  43.      */
  44.     protected $targetBlank false;
  45.     public function getId(): ?int
  46.     {
  47.         return $this->id;
  48.     }
  49.     /**
  50.      * @param int $id
  51.      * @return SCPLink
  52.      */
  53.     public function setId(int $id): self
  54.     {
  55.         $this->id $id;
  56.         return $this;
  57.     }
  58.     public function getLabel(): ?string
  59.     {
  60.         return $this->label;
  61.     }
  62.     /**
  63.      * @param string $label
  64.      * @return SCPLink
  65.      */
  66.     public function setLabel(string $label): self
  67.     {
  68.         $this->label $label;
  69.         return $this;
  70.     }
  71.     public function getUrl(): ?string
  72.     {
  73.         return $this->url;
  74.     }
  75.     /**
  76.      * @param string $url
  77.      * @return SCPLink
  78.      */
  79.     public function setUrl(string $url): self
  80.     {
  81.         $this->url $url;
  82.         return $this;
  83.     }
  84.     /**
  85.      * @return string
  86.      */
  87.     public function getTransKey(): ?string
  88.     {
  89.         return $this->transKey;
  90.     }
  91.     /**
  92.      * @param string $transKey
  93.      * @return SCPLink
  94.      */
  95.     public function setTransKey(string $transKey): self
  96.     {
  97.         $this->transKey $transKey;
  98.         return $this;
  99.     }
  100.     /**
  101.      * @return string
  102.      */
  103.     public function getArea(): ?string
  104.     {
  105.         return $this->area;
  106.     }
  107.     /**
  108.      * @param string $area
  109.      * @return SCPLink
  110.      */
  111.     public function setArea(string $area): self
  112.     {
  113.         $this->area $area;
  114.         return $this;
  115.     }
  116.     /**
  117.      * @return bool
  118.      */
  119.     public function getTargetBlank(): bool
  120.     {
  121.         return $this->targetBlank;
  122.     }
  123.     /**
  124.      * @param bool $targetBlank
  125.      * @return SCPLink
  126.      */
  127.     public function setTargetBlank(bool $targetBlank): self
  128.     {
  129.         $this->targetBlank $targetBlank;
  130.         return $this;
  131.     }
  132. }