|
|
@@ -41,6 +41,15 @@ class Settings
|
|
|
#[ORM\Column(length: 255, options: ['default' => 'FRANCE'])]
|
|
|
private string $country;
|
|
|
|
|
|
+ #[ORM\Column(nullable: true)]
|
|
|
+ private ?bool $trialActive = false;
|
|
|
+
|
|
|
+ #[ORM\Column(type: 'date', nullable: true)]
|
|
|
+ private ?\DateTimeInterface $lastTrialStartDate = null;
|
|
|
+
|
|
|
+ #[ORM\Column(length: 50, nullable: true, enumType: SettingsProductEnum::class)]
|
|
|
+ private ?SettingsProductEnum $productBeforeTrial;
|
|
|
+
|
|
|
public function getId(): ?int
|
|
|
{
|
|
|
return $this->id;
|
|
|
@@ -121,4 +130,40 @@ class Settings
|
|
|
|
|
|
return $this;
|
|
|
}
|
|
|
+
|
|
|
+ public function isTrialActive(): ?bool
|
|
|
+ {
|
|
|
+ return $this->trialActive;
|
|
|
+ }
|
|
|
+
|
|
|
+ public function setTrialActive(?bool $trialActive): self
|
|
|
+ {
|
|
|
+ $this->trialActive = $trialActive;
|
|
|
+
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
+ public function getlLastTrialStartDate(): ?\DateTimeInterface
|
|
|
+ {
|
|
|
+ return $this->lastTrialStartDate;
|
|
|
+ }
|
|
|
+
|
|
|
+ public function setLastTrialStartDate(?\DateTimeInterface $lastTrialStartDate): self
|
|
|
+ {
|
|
|
+ $this->lastTrialStartDate = $lastTrialStartDate;
|
|
|
+
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
+ public function getProductBeforeTrial(): ?SettingsProductEnum
|
|
|
+ {
|
|
|
+ return $this->productBeforeTrial;
|
|
|
+ }
|
|
|
+
|
|
|
+ public function setProductBeforeTrial(?SettingsProductEnum $productBeforeTrial): self
|
|
|
+ {
|
|
|
+ $this->productBeforeTrial = $productBeforeTrial;
|
|
|
+
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
}
|