src/Entity/Shop/Setting.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Shop;
  3. use App\Entity\BaseEntity;
  4. use App\Entity\Shop\Shop\Shop;
  5. use App\Repository\Shop\SettingRepository;
  6. use Doctrine\DBAL\Types\Types;
  7. use Doctrine\ORM\Mapping as ORM;
  8. use Symfony\Bridge\Doctrine\IdGenerator\UuidGenerator;
  9. #[ORM\Table(name'`shop_setting`')]
  10. #[ORM\Entity(repositoryClassSettingRepository::class)]
  11. class Setting extends BaseEntity
  12. {
  13.     #[ORM\Id]
  14.     #[ORM\Column(type'guid'uniquetrue)]
  15.     #[ORM\GeneratedValue(strategy'CUSTOM')]
  16.     #[ORM\CustomIdGenerator(class: UuidGenerator::class)]
  17.     private ?string $id;
  18.     #[ORM\Column(length255)]
  19.     private ?string $name null;
  20.     #[ORM\Column(typeTypes::TEXT)]
  21.     private ?string $value null;
  22.     #[ORM\ManyToOne(inversedBy'settings')]
  23.     #[ORM\JoinColumn(nullablefalse)]
  24.     private ?Shop $shop null;
  25.     public function getId(): ?string
  26.     {
  27.         return $this->id;
  28.     }
  29.     public function getName(): ?string
  30.     {
  31.         return $this->name;
  32.     }
  33.     public function setName(string $name): static
  34.     {
  35.         $this->name $name;
  36.         return $this;
  37.     }
  38.     public function getValue(): ?string
  39.     {
  40.         return $this->value;
  41.     }
  42.     public function setValue(string $value): static
  43.     {
  44.         $this->value $value;
  45.         return $this;
  46.     }
  47.     public function getShop(): ?Shop
  48.     {
  49.         return $this->shop;
  50.     }
  51.     public function setShop(?Shop $shop): static
  52.     {
  53.         $this->shop $shop;
  54.         return $this;
  55.     }
  56. }