src/Entity/Setting.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * @ORM\Entity(repositoryClass="App\Repository\SettingRepository")
  6.  * @ORM\Table(name="settings", indexes={@ORM\Index(name="id_index", columns={"id"})})
  7.  */
  8. class Setting
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\Column(type="integer")
  13.      * @ORM\GeneratedValue(strategy="AUTO")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\Column(type="string", length=10, nullable=false)
  18.      */
  19.     private $type;
  20.     /**
  21.      * @ORM\Column(type="string", length=100, nullable=false)
  22.      */
  23.     private $name;
  24.     /**
  25.      * @ORM\Column(type="string", nullable=false)
  26.      */
  27.     private $value;
  28.     /**
  29.      * @ORM\Column(type="boolean", nullable=false)
  30.      */
  31.     private $read_only;
  32.     /**
  33.      * @ORM\ManyToOne(targetEntity="App\Entity\Customer", inversedBy="settings")
  34.      * @ORM\JoinColumn(name="customer_id", referencedColumnName="id")
  35.      */
  36.     private $customer;
  37.     /**
  38.      * @ORM\ManyToOne(targetEntity="App\Entity\User", inversedBy="settings")
  39.      * @ORM\JoinColumn(name="user_id", referencedColumnName="id")
  40.      */
  41.     private $user;
  42.     /**
  43.      * @ORM\ManyToOne(targetEntity="App\Entity\Brand", inversedBy="settings")
  44.      * @ORM\JoinColumn(name="brand_id", referencedColumnName="id")
  45.      */
  46.     private $brand;
  47.     public function getId(): ?int
  48.     {
  49.         return $this->id;
  50.     }
  51.     public function getType(): ?string
  52.     {
  53.         return $this->type;
  54.     }
  55.     public function setType(string $type): self
  56.     {
  57.         $this->type $type;
  58.         return $this;
  59.     }
  60.     public function getName(): ?string
  61.     {
  62.         return $this->name;
  63.     }
  64.     public function setName(string $name): self
  65.     {
  66.         $this->name $name;
  67.         return $this;
  68.     }
  69.     public function getValue(): ?string
  70.     {
  71.         return $this->value;
  72.     }
  73.     public function setValue(string $value): self
  74.     {
  75.         $this->value $value;
  76.         return $this;
  77.     }
  78.     public function getReadOnly(): ?bool
  79.     {
  80.         return $this->read_only;
  81.     }
  82.     public function setReadOnly(bool $read_only): self
  83.     {
  84.         $this->read_only $read_only;
  85.         return $this;
  86.     }
  87.     public function getCustomer(): ?Customer
  88.     {
  89.         return $this->customer;
  90.     }
  91.     public function setCustomer(?Customer $customer): self
  92.     {
  93.         $this->customer $customer;
  94.         return $this;
  95.     }
  96.     public function getUser(): ?User
  97.     {
  98.         return $this->user;
  99.     }
  100.     public function setUser(?User $user): self
  101.     {
  102.         $this->user $user;
  103.         return $this;
  104.     }
  105.     public function getBrand(): ?Brand
  106.     {
  107.         return $this->brand;
  108.     }
  109.     public function setBrand(?Brand $brand): self
  110.     {
  111.         $this->brand $brand;
  112.         return $this;
  113.     }
  114. }