src/Entity/Settings.php line 11
<?phpnamespace App\Entity;use App\Repository\SettingsRepository;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;use Symfony\Component\Validator\Constraints as Assert;#[ORM\Entity(repositoryClass: SettingsRepository::class)]class Settings{#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column(type: 'integer')]private $id;#[ORM\Column(type: 'boolean', nullable: true)]private ?bool $isMonday = null;#[ORM\Column(type: 'boolean', nullable: true)]private ?bool $isTuesday = null;#[ORM\Column(type: 'boolean', nullable: true)]private ?bool $isWednesday = null;#[ORM\Column(type: 'boolean', nullable: true)]private ?bool $isThursday = null;#[ORM\Column(type: 'boolean', nullable: true)]private ?bool $isFriday = null;#[ORM\Column(type: 'boolean', nullable: true)]private ?bool $isSaturday = null;#[ORM\Column(type: 'boolean', nullable: true)]private ?bool $isSunday = null;#[ORM\Column(type: 'time', nullable: true)]private ?\DateTimeInterface $startWorkAt = null;#[ORM\Column(type: 'time', nullable: true)]private ?\DateTimeInterface $endWorkAt = null;#[ORM\Column(type: 'json', nullable: true)]private ?array $excludeDays = [];#[ORM\Column(type: 'json', nullable: true)]private ?array $excludeDates = [];#[ORM\Column(type: 'json', nullable: true)]private ?array $excludeHours = [];#[ORM\Column(type: 'string', length: 255, nullable: true)]private $logo = "";#[ORM\Column(type: 'text', nullable: true)]private $logoBase64 = "";#[ORM\Column(type: 'string', length: 255, nullable: true)]private $favicon = "";#[ORM\Column(type: 'string', length: 255, nullable: true)]#[Assert\Email]private $email = "contact@yourdomain.com";#[ORM\Column(type: Types::TEXT, nullable: true)]private ?string $address = null;#[ORM\Column(length: 255, nullable: true)]private ?string $currency = null;#[ORM\Column(length: 255, nullable: true)]private ?string $defaultLang = null;#[ORM\Column(length: 255, nullable: true)]private ?string $projectName = null;#[ORM\Column(length: 255, nullable: true,unique:true)]private ?string $code = null;#[ORM\Column(length: 255, nullable: true)]private ?string $assetFolderName = null;#[ORM\Column(type: Types::TEXT, nullable: true)]private ?string $mailOrderCreatedBody = null;#[ORM\Column(length: 255, nullable: true)]private ?string $mailOrderCreatedTitle = null;#[ORM\Column(length: 255, nullable: true)]private ?string $prefixOrder = null;#[ORM\Column(length: 255, nullable: true)]private ?string $rootUrl = null;#[ORM\ManyToOne(inversedBy: 'settings')]private ?FrontTheme $frontTheme = null;#[ORM\Column(type: Types::TEXT, nullable: true)]private ?string $description = null;#[ORM\Column(nullable: true)]private ?bool $isMercureEnabled = null;public function getId(): ?int{return $this->id;}public function getIsMonday(): ?bool{return $this->isMonday;}public function setIsMonday(?bool $isMonday): self{$this->isMonday = $isMonday;return $this;}public function getIsTuesday(): ?bool{return $this->isTuesday;}public function setIsTuesday(?bool $isTuesday): self{$this->isTuesday = $isTuesday;return $this;}public function getIsWednesday(): ?bool{return $this->isWednesday;}public function setIsWednesday(?bool $isWednesday): self{$this->isWednesday = $isWednesday;return $this;}public function getIsThursday(): ?bool{return $this->isThursday;}public function setIsThursday(?bool $isThursday): self{$this->isThursday = $isThursday;return $this;}public function getIsFriday(): ?bool{return $this->isFriday;}public function setIsFriday(?bool $isFriday): self{$this->isFriday = $isFriday;return $this;}public function getIsSaturday(): ?bool{return $this->isSaturday;}public function setIsSaturday(bool $isSaturday): self{$this->isSaturday = $isSaturday;return $this;}public function getIsSunday(): ?bool{return $this->isSunday;}public function setIsSunday(?bool $isSunday): self{$this->isSunday = $isSunday;return $this;}public function getStartWorkAt(): ?\DateTimeInterface{return $this->startWorkAt;}public function setStartWorkAt(?\DateTimeInterface $startWorkAt): self{$this->startWorkAt = $startWorkAt;return $this;}public function getEndWorkAt(): ?\DateTimeInterface{return $this->endWorkAt;}public function setEndWorkAt(?\DateTimeInterface $endWorkAt): self{$this->endWorkAt = $endWorkAt;return $this;}public function getExcludeDays(): ?array{return $this->excludeDays;}public function setExcludeDays(?array $excludeDays): self{$this->excludeDays = $excludeDays;return $this;}public function getExcludeDates(): ?array{return array_values($this->excludeDates);}public function getExcludeDatesOnlyDates(): ?array{return array_column($this->excludeDates,"date");}public function setExcludeDates(?array $excludeDates): self{$this->excludeDates = $excludeDates;return $this;}public function getExcludeHours(): ?array{return $this->excludeHours;}public function setExcludeHours(?array $excludeHours): self{$this->excludeHours = $excludeHours;return $this;}/*** Get the value of logo*/public function getLogo(){return $this->logo;}/*** Set the value of logo** @return self*/public function setLogo($logo){$this->logo = $logo;return $this;}/*** Get the value of favicon*/public function getFavicon(){return $this->favicon;}/*** Set the value of favicon** @return self*/public function setFavicon($favicon){$this->favicon = $favicon;return $this;}/*** Get the value of logoBase64*/public function getLogoBase64(){return $this->logoBase64;}/*** Set the value of logoBase64** @return self*/public function setLogoBase64($logoBase64){$this->logoBase64 = $logoBase64;return $this;}/*** Get the value of email*/public function getEmail(){return $this->email;}/*** Set the value of email** @return self*/public function setEmail($email){$this->email = $email;return $this;}public function getAddress(): ?string{return $this->address;}public function setAddress(?string $address): self{$this->address = $address;return $this;}public function getCurrency(): ?string{return $this->currency;}public function setCurrency(?string $currency): self{$this->currency = $currency;return $this;}public function getDefaultLang(): ?string{return $this->defaultLang;}public function setDefaultLang(?string $defaultLang): self{$this->defaultLang = $defaultLang;return $this;}public function getProjectName(): ?string{return $this->projectName;}public function setProjectName(?string $projectName): self{$this->projectName = $projectName;return $this;}public function getCode(): ?string{return $this->code;}public function setCode(?string $code): self{$this->code = $code;return $this;}public function getAssetFolderName(): ?string{return $this->assetFolderName;}public function setAssetFolderName(?string $assetFolderName): self{$this->assetFolderName = $assetFolderName;return $this;}public function getMailOrderCreatedBody(): ?string{return $this->mailOrderCreatedBody;}public function setMailOrderCreatedBody(?string $mailOrderCreatedBody): self{$this->mailOrderCreatedBody = $mailOrderCreatedBody;return $this;}public function getMailOrderCreatedTitle(): ?string{return $this->mailOrderCreatedTitle;}public function setMailOrderCreatedTitle(?string $mailOrderCreatedTitle): self{$this->mailOrderCreatedTitle = $mailOrderCreatedTitle;return $this;}public function getPrefixOrder(): ?string{return $this->prefixOrder;}public function setPrefixOrder(?string $prefixOrder): self{$this->prefixOrder = $prefixOrder;return $this;}public function getRootUrl(): ?string{return $this->rootUrl;}public function setRootUrl(?string $rootUrl): self{$this->rootUrl = $rootUrl;return $this;}public function getFrontTheme(): ?FrontTheme{return $this->frontTheme;}public function setFrontTheme(?FrontTheme $frontTheme): self{$this->frontTheme = $frontTheme;return $this;}public function getDescription(): ?string{return $this->description;}public function setDescription(?string $description): self{$this->description = $description;return $this;}public function isIsMercureEnabled(): ?bool{return $this->isMercureEnabled;}public function setIsMercureEnabled(?bool $isMercureEnabled): self{$this->isMercureEnabled = $isMercureEnabled;return $this;}}