<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Settings
*
* @ORM\Table(name="settings")
* @ORM\Entity
*/
class Settings
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer", nullable=false)
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
private $id;
/**
* @var string|null
*
* @ORM\Column(name="company_name", type="text", length=65535, nullable=true, options={"comment"="Cég név"})
*/
private $companyName;
/**
* @var string|null
*
* @ORM\Column(name="company_address", type="text", length=65535, nullable=true, options={"comment"="Cég cím"})
*/
private $companyAddress;
/**
* @var string|null
*
* @ORM\Column(name="company_phone", type="string", length=40, nullable=true, options={"comment"="Cég telefonszám"})
*/
private $companyPhone;
/**
* @var string|null
*
* @ORM\Column(name="company_mail", type="string", length=250, nullable=true, options={"comment"="Cég email"})
*/
private $companyMail;
/**
* @var string|null
*
* @ORM\Column(name="company_other", type="text", length=65535, nullable=true, options={"comment"="Cég egyéb"})
*/
private $companyOther;
/**
* @var int
*
* @ORM\Column(name="notice_arrived", type="integer", nullable=false, options={"default"="15","comment"="Jelzés érkezésről"})
*/
private $noticeArrived = '15';
/**
* @var int
*
* @ORM\Column(name="price_assembly", type="integer", nullable=false, options={"comment"="Szerelés óradíj"})
*/
private $priceAssembly = '0';
/**
* @var int
*
* @ORM\Column(name="price_bodyguard", type="integer", nullable=false, options={"comment"="Lakatos óradíj"})
*/
private $priceBodyguard = '0';
/**
* @var int
*
* @ORM\Column(name="price_paint", type="integer", nullable=false, options={"comment"="Festés óradíj"})
*/
private $pricePaint = '0';
/**
* @var float
*
* @ORM\Column(name="tax", type="float", precision=10, scale=0, nullable=false, options={"default"="1.27","comment"="Áfa"})
*/
private $tax = '1.27';
/**
* @var int
*
* @ORM\Column(name="technical_alert", type="integer", nullable=false, options={"default"="60","comment"="Műszaki jelzése"})
*/
private $technicalAlert = '60';
/**
* @var string|null
*
* @ORM\Column(name="logo", type="string", length=250, nullable=true, options={"comment"="Logo"})
*/
private $logo;
/**
* @var string|null
*
* @ORM\Column(name="worksheet_note", type="text", length=65535, nullable=true, options={"comment"="Munkalap megjegyzés"})
*/
private $worksheetNote;
/**
* @var string|null
*
* @ORM\Column(name="payoff_note", type="text", length=65535, nullable=true, options={"comment"="Elszámolás"})
*/
private $payoffNote;
/**
* @var string|null
*
* @ORM\Column(name="quote_note", type="text", length=65535, nullable=true, options={"comment"="Ajánlat megjegyzés"})
*/
private $quoteNote;
/**
* @var \DateTime
*
* @ORM\Column(name="modified", type="datetime", nullable=true, options={"comment"="Módosítva"})
*/
private $modified;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $page_size;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $site_title;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $email_alert_days;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $event_internal_mail_template;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $event_customer_mail_template;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $technical_internal_mail_template;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $technical_customer_mail_template;
/**
* @ORM\Column(type="string", length=3)
*/
private $currency;
public function getId(): ?int
{
return $this->id;
}
public function getCompanyName(): ?string
{
return $this->companyName;
}
public function setCompanyName(?string $companyName): self
{
$this->companyName = $companyName;
return $this;
}
public function getCompanyAddress(): ?string
{
return $this->companyAddress;
}
public function setCompanyAddress(?string $companyAddress): self
{
$this->companyAddress = $companyAddress;
return $this;
}
public function getCompanyPhone(): ?string
{
return $this->companyPhone;
}
public function setCompanyPhone(?string $companyPhone): self
{
$this->companyPhone = $companyPhone;
return $this;
}
public function getCompanyMail(): ?string
{
return $this->companyMail;
}
public function setCompanyMail(?string $companyMail): self
{
$this->companyMail = $companyMail;
return $this;
}
public function getCompanyOther(): ?string
{
return $this->companyOther;
}
public function setCompanyOther(?string $companyOther): self
{
$this->companyOther = $companyOther;
return $this;
}
public function getNoticeArrived(): ?int
{
return $this->noticeArrived;
}
public function setNoticeArrived(int $noticeArrived): self
{
$this->noticeArrived = $noticeArrived;
return $this;
}
public function getPriceAssembly(): ?int
{
return $this->priceAssembly;
}
public function setPriceAssembly(int $priceAssembly): self
{
$this->priceAssembly = $priceAssembly;
return $this;
}
public function getPriceBodyguard(): ?int
{
return $this->priceBodyguard;
}
public function setPriceBodyguard(int $priceBodyguard): self
{
$this->priceBodyguard = $priceBodyguard;
return $this;
}
public function getPricePaint(): ?int
{
return $this->pricePaint;
}
public function setPricePaint(int $pricePaint): self
{
$this->pricePaint = $pricePaint;
return $this;
}
public function getTax(): ?float
{
return $this->tax;
}
public function setTax(float $tax): self
{
$this->tax = $tax;
return $this;
}
public function getTechnicalAlert(): ?int
{
return $this->technicalAlert;
}
public function setTechnicalAlert(int $technicalAlert): self
{
$this->technicalAlert = $technicalAlert;
return $this;
}
public function getLogo(): ?string
{
return $this->logo;
}
public function getLogoBase64(): ?string
{
$path = dirname(__FILE__) . '/../../storage/uploads/' . $this->logo;
$type = pathinfo($path, PATHINFO_EXTENSION);
$data = file_get_contents($path);
$base64 = 'data:image/' . $type . ';base64,' . base64_encode($data);
return $base64;
}
public function setLogo(?string $logo): self
{
$this->logo = $logo;
return $this;
}
public function getWorksheetNote(): ?string
{
return $this->worksheetNote;
}
public function setWorksheetNote(?string $worksheetNote): self
{
$this->worksheetNote = $worksheetNote;
return $this;
}
public function getPayoffNote(): ?string
{
return $this->payoffNote;
}
public function setPayoffNote(?string $payoffNote): self
{
$this->payoffNote = $payoffNote;
return $this;
}
public function getQuoteNote(): ?string
{
return $this->quoteNote;
}
public function setQuoteNote(?string $quoteNote): self
{
$this->quoteNote = $quoteNote;
return $this;
}
public function getModified(): ?\DateTimeInterface
{
return $this->modified;
}
public function getPageSize(): ?int
{
return $this->page_size;
}
public function setPageSize(?int $page_size): self
{
$this->page_size = $page_size;
return $this;
}
public function getSiteTitle(): ?string
{
return $this->site_title ? $this->site_title : 'Garage';
}
public function setSiteTitle(?string $site_title): self
{
$this->site_title = $site_title;
return $this;
}
public function getEmailAlertDays(): ?int
{
return $this->email_alert_days ? $this->email_alert_days : 1;
}
public function setEmailAlertDays(?int $email_alert_days): self
{
$this->email_alert_days = $email_alert_days;
return $this;
}
public function getEventInternalMailTemplate(): ?string
{
return $this->event_internal_mail_template;
}
public function setEventInternalMailTemplate(?string $event_internal_mail_template): self
{
$this->event_internal_mail_template = $event_internal_mail_template;
return $this;
}
public function getEventCustomerMailTemplate(): ?string
{
return $this->event_customer_mail_template;
}
public function setEventCustomerMailTemplate(?string $event_customer_mail_template): self
{
$this->event_customer_mail_template = $event_customer_mail_template;
return $this;
}
public function getTechnicalInternalMailTemplate(): ?string
{
return $this->technical_internal_mail_template;
}
public function setTechnicalInternalMailTemplate(?string $technical_internal_mail_template): self
{
$this->technical_internal_mail_template = $technical_internal_mail_template;
return $this;
}
public function getTechnicalCustomerMailTemplate(): ?string
{
return $this->technical_customer_mail_template;
}
public function setTechnicalCustomerMailTemplate(?string $technical_customer_mail_template): self
{
$this->technical_customer_mail_template = $technical_customer_mail_template;
return $this;
}
public function getCurrency(): ?string
{
return $this->currency;
}
public function setCurrency(string $currency): self
{
$this->currency = $currency;
return $this;
}
}