src/Entity/Settings.php line 11

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\SettingsRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. use Symfony\Component\Validator\Constraints as Assert;
  7. #[ORM\Entity(repositoryClassSettingsRepository::class)]
  8. class Settings
  9. {
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column(type'integer')]
  13.     private $id;
  14.     #[ORM\Column(type'boolean'nullabletrue)]
  15.     private ?bool $isMonday null;
  16.     #[ORM\Column(type'boolean'nullabletrue)]
  17.     private ?bool $isTuesday null;
  18.     #[ORM\Column(type'boolean'nullabletrue)]
  19.     private ?bool $isWednesday null;
  20.     #[ORM\Column(type'boolean'nullabletrue)]
  21.     private ?bool $isThursday null;
  22.     #[ORM\Column(type'boolean'nullabletrue)]
  23.     private ?bool $isFriday null;
  24.     #[ORM\Column(type'boolean'nullabletrue)]
  25.     private ?bool $isSaturday null;
  26.     #[ORM\Column(type'boolean'nullabletrue)]
  27.     private ?bool $isSunday null;
  28.     #[ORM\Column(type'time'nullabletrue)]
  29.     private ?\DateTimeInterface $startWorkAt null;
  30.     #[ORM\Column(type'time'nullabletrue)]
  31.     private ?\DateTimeInterface $endWorkAt null;
  32.     #[ORM\Column(type'json'nullabletrue)]
  33.     private ?array $excludeDays = [];
  34.     #[ORM\Column(type'json'nullabletrue)]
  35.     private ?array $excludeDates = [];
  36.     #[ORM\Column(type'json'nullabletrue)]
  37.     private ?array $excludeHours = [];
  38.     #[ORM\Column(type'string'length255nullabletrue)]
  39.     private $logo "";
  40.         #[ORM\Column(type'text'nullabletrue)]
  41.     private $logoBase64 "";
  42.     #[ORM\Column(type'string'length255nullabletrue)]
  43.     private $favicon "";
  44.     #[ORM\Column(type'string'length255nullabletrue)]
  45.     #[Assert\Email]
  46.     private $email "contact@yourdomain.com";
  47.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  48.     private ?string $address null;
  49.     #[ORM\Column(length255nullabletrue)]
  50.     private ?string $currency null;
  51.     #[ORM\Column(length255nullabletrue)]
  52.     private ?string $defaultLang null;
  53.     #[ORM\Column(length255nullabletrue)]
  54.     private ?string $projectName null;
  55.     #[ORM\Column(length255nullabletrue,unique:true)]
  56.     private ?string $code null;
  57.     #[ORM\Column(length255nullabletrue)]
  58.     private ?string $assetFolderName null;
  59.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  60.     private ?string $mailOrderCreatedBody null;
  61.     #[ORM\Column(length255nullabletrue)]
  62.     private ?string $mailOrderCreatedTitle null;
  63.     #[ORM\Column(length255nullabletrue)]
  64.     private ?string $prefixOrder null;
  65.     #[ORM\Column(length255nullabletrue)]
  66.     private ?string $rootUrl null;
  67.     #[ORM\ManyToOne(inversedBy'settings')]
  68.     private ?FrontTheme $frontTheme null;
  69.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  70.     private ?string $description null;
  71.     #[ORM\Column(nullabletrue)]
  72.     private ?bool $isMercureEnabled null;
  73.     #[ORM\Column(length255nullabletrue)]
  74.     private ?string $mobileAppScheme null;
  75.     #[ORM\Column(length255nullabletrue)]
  76.     private ?string $mobileAppSchemeDev null;
  77.     #[ORM\Column(nullabletrue)]
  78.     private ?bool $developpementEnv null;
  79.     #[ORM\Column(length255,nullabletrue)]
  80.     private ?string $mobileAppSchemeIOS null;
  81.     #[ORM\Column(length255,nullabletrue)]
  82.     private ?string $mobileAppSchemeAndroid null;
  83.     public function getId(): ?int
  84.     {
  85.         return $this->id;
  86.     }
  87.     public function getIsMonday(): ?bool
  88.     {
  89.         return $this->isMonday;
  90.     }
  91.     public function setIsMonday(?bool $isMonday): self
  92.     {
  93.         $this->isMonday $isMonday;
  94.         return $this;
  95.     }
  96.     public function getIsTuesday(): ?bool
  97.     {
  98.         return $this->isTuesday;
  99.     }
  100.     public function setIsTuesday(?bool $isTuesday): self
  101.     {
  102.         $this->isTuesday $isTuesday;
  103.         return $this;
  104.     }
  105.     public function getIsWednesday(): ?bool
  106.     {
  107.         return $this->isWednesday;
  108.     }
  109.     public function setIsWednesday(?bool $isWednesday): self
  110.     {
  111.         $this->isWednesday $isWednesday;
  112.         return $this;
  113.     }
  114.     public function getIsThursday(): ?bool
  115.     {
  116.         return $this->isThursday;
  117.     }
  118.     public function setIsThursday(?bool $isThursday): self
  119.     {
  120.         $this->isThursday $isThursday;
  121.         return $this;
  122.     }
  123.     public function getIsFriday(): ?bool
  124.     {
  125.         return $this->isFriday;
  126.     }
  127.     public function setIsFriday(?bool $isFriday): self
  128.     {
  129.         $this->isFriday $isFriday;
  130.         return $this;
  131.     }
  132.     public function getIsSaturday(): ?bool
  133.     {
  134.         return $this->isSaturday;
  135.     }
  136.     public function setIsSaturday(bool $isSaturday): self
  137.     {
  138.         $this->isSaturday $isSaturday;
  139.         return $this;
  140.     }
  141.     public function getIsSunday(): ?bool
  142.     {
  143.         return $this->isSunday;
  144.     }
  145.     public function setIsSunday(?bool $isSunday): self
  146.     {
  147.         $this->isSunday $isSunday;
  148.         return $this;
  149.     }
  150.     public function getStartWorkAt(): ?\DateTimeInterface
  151.     {
  152.         return $this->startWorkAt;
  153.     }
  154.     public function setStartWorkAt(?\DateTimeInterface $startWorkAt): self
  155.     {
  156.         $this->startWorkAt $startWorkAt;
  157.         return $this;
  158.     }
  159.     public function getEndWorkAt(): ?\DateTimeInterface
  160.     {
  161.         return $this->endWorkAt;
  162.     }
  163.     public function setEndWorkAt(?\DateTimeInterface $endWorkAt): self
  164.     {
  165.         $this->endWorkAt $endWorkAt;
  166.         return $this;
  167.     }
  168.     public function getExcludeDays(): ?array
  169.     {
  170.         return $this->excludeDays;
  171.     }
  172.     public function setExcludeDays(?array $excludeDays): self
  173.     {
  174.         $this->excludeDays $excludeDays;
  175.         return $this;
  176.     }
  177.     public function getExcludeDates(): ?array
  178.     {
  179.         return array_values($this->excludeDates);
  180.     }
  181.     public function getExcludeDatesOnlyDates(): ?array
  182.     {
  183.         return array_column($this->excludeDates,"date");
  184.     }
  185.     public function setExcludeDates(?array $excludeDates): self
  186.     {
  187.         $this->excludeDates $excludeDates;
  188.         return $this;
  189.     }
  190.     public function getExcludeHours(): ?array
  191.     {
  192.         return $this->excludeHours;
  193.     }
  194.     public function setExcludeHours(?array $excludeHours): self
  195.     {
  196.         $this->excludeHours $excludeHours;
  197.         return $this;
  198.     }
  199.     /**
  200.      * Get the value of logo
  201.      */ 
  202.     public function getLogo()
  203.     {
  204.         return $this->logo;
  205.     }
  206.     /**
  207.      * Set the value of logo
  208.      *
  209.      * @return  self
  210.      */ 
  211.     public function setLogo($logo)
  212.     {
  213.         $this->logo $logo;
  214.         return $this;
  215.     }
  216.     /**
  217.      * Get the value of favicon
  218.      */ 
  219.     public function getFavicon()
  220.     {
  221.         return $this->favicon;
  222.     }
  223.     /**
  224.      * Set the value of favicon
  225.      *
  226.      * @return  self
  227.      */ 
  228.     public function setFavicon($favicon)
  229.     {
  230.         $this->favicon $favicon;
  231.         return $this;
  232.     }
  233.     /**
  234.      * Get the value of logoBase64
  235.      */ 
  236.     public function getLogoBase64()
  237.     {
  238.         return $this->logoBase64;
  239.     }
  240.     /**
  241.      * Set the value of logoBase64
  242.      *
  243.      * @return  self
  244.      */ 
  245.     public function setLogoBase64($logoBase64)
  246.     {
  247.         $this->logoBase64 $logoBase64;
  248.         return $this;
  249.     }
  250.     /**
  251.      * Get the value of email
  252.      */ 
  253.     public function getEmail()
  254.     {
  255.         return $this->email;
  256.     }
  257.     /**
  258.      * Set the value of email
  259.      *
  260.      * @return  self
  261.      */ 
  262.     public function setEmail($email)
  263.     {
  264.         $this->email $email;
  265.         return $this;
  266.     }
  267.     public function getAddress(): ?string
  268.     {
  269.         return $this->address;
  270.     }
  271.     public function setAddress(?string $address): self
  272.     {
  273.         $this->address $address;
  274.         return $this;
  275.     }
  276.     public function getCurrency(): ?string
  277.     {
  278.         return $this->currency;
  279.     }
  280.     public function setCurrency(?string $currency): self
  281.     {
  282.         $this->currency $currency;
  283.         return $this;
  284.     }
  285.     public function getDefaultLang(): ?string
  286.     {
  287.         return $this->defaultLang;
  288.     }
  289.     public function setDefaultLang(?string $defaultLang): self
  290.     {
  291.         $this->defaultLang $defaultLang;
  292.         return $this;
  293.     }
  294.     public function getProjectName(): ?string
  295.     {
  296.         return $this->projectName;
  297.     }
  298.     public function setProjectName(?string $projectName): self
  299.     {
  300.         $this->projectName $projectName;
  301.         return $this;
  302.     }
  303.     public function getCode(): ?string
  304.     {
  305.         return $this->code;
  306.     }
  307.     public function setCode(?string $code): self
  308.     {
  309.         $this->code $code;
  310.         return $this;
  311.     }
  312.     public function getAssetFolderName(): ?string
  313.     {
  314.         return $this->assetFolderName;
  315.     }
  316.     public function setAssetFolderName(?string $assetFolderName): self
  317.     {
  318.         $this->assetFolderName $assetFolderName;
  319.         return $this;
  320.     }
  321.     public function getMailOrderCreatedBody(): ?string
  322.     {
  323.         return $this->mailOrderCreatedBody;
  324.     }
  325.     public function setMailOrderCreatedBody(?string $mailOrderCreatedBody): self
  326.     {
  327.         $this->mailOrderCreatedBody $mailOrderCreatedBody;
  328.         return $this;
  329.     }
  330.     public function getMailOrderCreatedTitle(): ?string
  331.     {
  332.         return $this->mailOrderCreatedTitle;
  333.     }
  334.     public function setMailOrderCreatedTitle(?string $mailOrderCreatedTitle): self
  335.     {
  336.         $this->mailOrderCreatedTitle $mailOrderCreatedTitle;
  337.         return $this;
  338.     }
  339.     public function getPrefixOrder(): ?string
  340.     {
  341.         return $this->prefixOrder;
  342.     }
  343.     public function setPrefixOrder(?string $prefixOrder): self
  344.     {
  345.         $this->prefixOrder $prefixOrder;
  346.         return $this;
  347.     }
  348.     public function getRootUrl(): ?string
  349.     {
  350.         return $this->rootUrl;
  351.     }
  352.     public function setRootUrl(?string $rootUrl): self
  353.     {
  354.         $this->rootUrl $rootUrl;
  355.         return $this;
  356.     }
  357.     public function getFrontTheme(): ?FrontTheme
  358.     {
  359.         return $this->frontTheme;
  360.     }
  361.     public function setFrontTheme(?FrontTheme $frontTheme): self
  362.     {
  363.         $this->frontTheme $frontTheme;
  364.         return $this;
  365.     }
  366.     public function getDescription(): ?string
  367.     {
  368.         return $this->description;
  369.     }
  370.     public function setDescription(?string $description): self
  371.     {
  372.         $this->description $description;
  373.         return $this;
  374.     }
  375.     public function isIsMercureEnabled(): ?bool
  376.     {
  377.         return $this->isMercureEnabled;
  378.     }
  379.     public function setIsMercureEnabled(?bool $isMercureEnabled): self
  380.     {
  381.         $this->isMercureEnabled $isMercureEnabled;
  382.         return $this;
  383.     }
  384.     public function getMobileAppScheme(): ?string
  385.     {
  386.         return $this->mobileAppScheme;
  387.     }
  388.     public function setMobileAppScheme(?string $mobileAppScheme): self
  389.     {
  390.         $this->mobileAppScheme $mobileAppScheme;
  391.         return $this;
  392.     }
  393.     public function getMobileAppSchemeDev(): ?string
  394.     {
  395.         return $this->mobileAppSchemeDev;
  396.     }
  397.     public function setMobileAppSchemeDev(?string $mobileAppSchemeDev): self
  398.     {
  399.         $this->mobileAppSchemeDev $mobileAppSchemeDev;
  400.         return $this;
  401.     }
  402.     public function isDeveloppementEnv(): ?bool
  403.     {
  404.         return $this->developpementEnv;
  405.     }
  406.     public function setDeveloppementEnv(?bool $developpementEnv): self
  407.     {
  408.         $this->developpementEnv $developpementEnv;
  409.         return $this;
  410.     }
  411.     public function isMobileAppSchemeIOS(): ?string
  412.     {
  413.         return $this->mobileAppSchemeIOS;
  414.     }
  415.     public function setMobileAppSchemeIOS(?string $mobileAppSchemeIOS): self
  416.     {
  417.         $this->mobileAppSchemeIOS $mobileAppSchemeIOS;
  418.         return $this;
  419.     }
  420.     public function isMobileAppSchemeAndroid(): ?string
  421.     {
  422.         return $this->mobileAppSchemeAndroid;
  423.     }
  424.     public function setMobileAppSchemeAndroid(?string $mobileAppSchemeAndroid): self
  425.     {
  426.         $this->mobileAppSchemeAndroid $mobileAppSchemeAndroid;
  427.         return $this;
  428.     }
  429. }