<?php
namespace App\Entity;
use App\Repository\SettingsRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: SettingsRepository::class)]
#[ORM\HasLifecycleCallbacks]
class Settings extends BaseEntity
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $Name;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $Title;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $Logo;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $Email;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $EmailPassword;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $EmailSmtpHost;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $EmailSmtpPort;
#[ORM\Column(nullable: true)]
private ?int $invoiceNumberCounter = null;
#[ORM\Column(type: 'boolean', options: ['default' => false])]
private ?bool $isMaintenanceMode = false;
#[ORM\Column(type: 'string', length: 3, options: ['default' => 'EUR'])]
private ?string $currency = 'EUR';
public function getCurrency(): ?string
{
return $this->currency;
}
public function setCurrency(string $currency): self
{
$this->currency = $currency;
return $this;
}
public function getId(): ?int
{
return $this->id;
}
public function isMaintenanceMode(): ?bool
{
return $this->isMaintenanceMode;
}
public function setIsMaintenanceMode(bool $isMaintenanceMode): self
{
$this->isMaintenanceMode = $isMaintenanceMode;
return $this;
}
public function getName(): ?string
{
return $this->Name;
}
public function setName(?string $Name): self
{
$this->Name = $Name;
return $this;
}
public function getTitle(): ?string
{
return $this->Title;
}
public function setTitle(?string $Title): self
{
$this->Title = $Title;
return $this;
}
public function getLogo(): ?string
{
return $this->Logo;
}
public function setLogo(?string $Logo): self
{
$this->Logo = $Logo;
return $this;
}
public function getEmail(): ?string
{
return $this->Email;
}
public function setEmail(?string $Email): self
{
$this->Email = $Email;
return $this;
}
public function getEmailPassword(): ?string
{
return $this->EmailPassword;
}
public function setEmailPassword(?string $EmailPassword): self
{
$this->EmailPassword = $EmailPassword;
return $this;
}
public function getEmailSmtpHost(): ?string
{
return $this->EmailSmtpHost;
}
public function setEmailSmtpHost(string $EmailSmtpHost): self
{
$this->EmailSmtpHost = $EmailSmtpHost;
return $this;
}
public function getEmailSmtpPort(): ?string
{
return $this->EmailSmtpPort;
}
public function setEmailSmtpPort(?string $EmailSmtpPort): self
{
$this->EmailSmtpPort = $EmailSmtpPort;
return $this;
}
public function getInvoiceNumberCounter(): ?int
{
return $this->invoiceNumberCounter;
}
public function setInvoiceNumberCounter(?int $invoiceNumberCounter): static
{
$this->invoiceNumberCounter = $invoiceNumberCounter;
return $this;
}
}