<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass="App\Repository\SettingRepository")
* @ORM\Table(name="settings", indexes={@ORM\Index(name="id_index", columns={"id"})})
*/
class Setting
{
/**
* @ORM\Id
* @ORM\Column(type="integer")
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @ORM\Column(type="string", length=10, nullable=false)
*/
private $type;
/**
* @ORM\Column(type="string", length=100, nullable=false)
*/
private $name;
/**
* @ORM\Column(type="string", nullable=false)
*/
private $value;
/**
* @ORM\Column(type="boolean", nullable=false)
*/
private $read_only;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Customer", inversedBy="settings")
* @ORM\JoinColumn(name="customer_id", referencedColumnName="id")
*/
private $customer;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\User", inversedBy="settings")
* @ORM\JoinColumn(name="user_id", referencedColumnName="id")
*/
private $user;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Brand", inversedBy="settings")
* @ORM\JoinColumn(name="brand_id", referencedColumnName="id")
*/
private $brand;
public function getId(): ?int
{
return $this->id;
}
public function getType(): ?string
{
return $this->type;
}
public function setType(string $type): self
{
$this->type = $type;
return $this;
}
public function getName(): ?string
{
return $this->name;
}
public function setName(string $name): self
{
$this->name = $name;
return $this;
}
public function getValue(): ?string
{
return $this->value;
}
public function setValue(string $value): self
{
$this->value = $value;
return $this;
}
public function getReadOnly(): ?bool
{
return $this->read_only;
}
public function setReadOnly(bool $read_only): self
{
$this->read_only = $read_only;
return $this;
}
public function getCustomer(): ?Customer
{
return $this->customer;
}
public function setCustomer(?Customer $customer): self
{
$this->customer = $customer;
return $this;
}
public function getUser(): ?User
{
return $this->user;
}
public function setUser(?User $user): self
{
$this->user = $user;
return $this;
}
public function getBrand(): ?Brand
{
return $this->brand;
}
public function setBrand(?Brand $brand): self
{
$this->brand = $brand;
return $this;
}
}