<?phpnamespace App\Entity;use App\Repository\ShopSettingRepository;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=ShopSettingRepository::class) */class ShopSetting{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="text") */ private $value; /** * @ORM\Column(type="text", nullable=true) */ private $url; /** * @ORM\ManyToOne(targetEntity=Shop::class, inversedBy="settings") * @ORM\JoinColumn(nullable=false) */ private $shop; /** * @ORM\ManyToOne(targetEntity=Setting::class) * @ORM\JoinColumn(nullable=false) * @ORM\OrderBy({"name" = "ASC"}) */ private $setting; public function getId(): ?int { return $this->id; } public function getValue(): ?string { if($this->value=='false') { $this->value=false; } if($this->value=='true') { $this->value=true; } return $this->value; } public function setValue(string $value): self { $this->value = $value; return $this; } public function getUrl(): ?string { return $this->url; } public function setUrl( $url): self { $this->url = $url; return $this; } public function getShop(): ?Shop { return $this->shop; } public function setShop(?Shop $shop): self { $this->shop = $shop; return $this; } public function getSetting(): ?Setting { return $this->setting; } public function setSetting(?Setting $setting): self { $this->setting = $setting; return $this; }}