src/Entity/Setting.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\SettingRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7.  * @ORM\Entity(repositoryClass=SettingRepository::class)
  8.  */
  9. class Setting
  10. {
  11.     /**
  12.      * @ORM\Id
  13.      * @ORM\GeneratedValue
  14.      * @ORM\Column(type="integer")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @ORM\Column(type="string", length=255)
  19.      */
  20.     private $name;
  21.     /**
  22.      * @ORM\Column(type="string", length=255)
  23.      */
  24.     private $machineName;
  25.     /**
  26.      * @ORM\Column(type="text", nullable=true)
  27.      */
  28.     private $description;
  29.     /**
  30.      * @ORM\Column(type="string", length=255)
  31.      */
  32.     private $widget;
  33.     /**
  34.      * @ORM\Column(type="string", length=255)
  35.      */
  36.     private $role;
  37.     /**
  38.      * @ORM\Column(type="string", length=128)
  39.      */
  40.     private $target;
  41.     /**
  42.      * @ORM\Column(type="text")
  43.      */
  44.     private $defaultValue;
  45.     /**
  46.      * @ORM\Column(type="text", nullable=true)
  47.      */
  48.     private $defaultUrl;
  49.     public function getId(): ?int
  50.     {
  51.         return $this->id;
  52.     }
  53.     public function getName(): ?string
  54.     {
  55.         return $this->name;
  56.     }
  57.     public function setName(string $name): self
  58.     {
  59.         $this->name $name;
  60.         return $this;
  61.     }
  62.     public function getMachineName(): ?string
  63.     {
  64.         return $this->machineName;
  65.     }
  66.     public function setMachineName(string $machineName): self
  67.     {
  68.         $this->machineName $machineName;
  69.         return $this;
  70.     }
  71.     public function setWidget(string $widget): self
  72.     {
  73.         $this->widget $widget;
  74.         return $this;
  75.     }
  76.     public function getWidget(): ?string
  77.     {
  78.         return $this->widget;
  79.     }
  80.     public function getDescription(): ?string
  81.     {
  82.         return $this->description;
  83.     }
  84.     public function setDescription(?string $description): self
  85.     {
  86.         $this->description $description;
  87.         return $this;
  88.     }
  89.     public function getRole(): ?string
  90.     {
  91.         return $this->role;
  92.     }
  93.     public function setRole(string $role): self
  94.     {
  95.         $this->role $role;
  96.         return $this;
  97.     }
  98.     public function getTarget(): ?string
  99.     {
  100.         return $this->target;
  101.     }
  102.     public function setTarget(string $target): self
  103.     {
  104.         $this->target $target;
  105.         return $this;
  106.     }
  107.     public function getDefaultValue(): ?string
  108.     {
  109.         return $this->defaultValue;
  110.     }
  111.     public function setDefaultValue(string $defaultValue): self
  112.     {
  113.         $this->defaultValue $defaultValue;
  114.         return $this;
  115.     }
  116.     public function getDefaultUrl(): ?string
  117.     {
  118.         return $this->defaultUrl;
  119.     }
  120.     public function setDefaultUrl(string $defaultUrl): self
  121.     {
  122.         $this->defaultUrl $defaultUrl;
  123.         return $this;
  124.     }
  125. }