src/Entity/Website/Setting.php line 12

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