src/Entity/Settings.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * Settings
  6.  *
  7.  * @ORM\Table(name="settings")
  8.  * @ORM\Entity
  9.  */
  10. class Settings
  11. {
  12.     /**
  13.      * @var int
  14.      *
  15.      * @ORM\Column(name="id", type="integer", nullable=false)
  16.      * @ORM\Id
  17.      * @ORM\GeneratedValue(strategy="IDENTITY")
  18.      */
  19.     private $id;
  20.     /**
  21.      * @var string|null
  22.      *
  23.      * @ORM\Column(name="company_name", type="text", length=65535, nullable=true, options={"comment"="Cég név"})
  24.      */
  25.     private $companyName;
  26.     /**
  27.      * @var string|null
  28.      *
  29.      * @ORM\Column(name="company_address", type="text", length=65535, nullable=true, options={"comment"="Cég cím"})
  30.      */
  31.     private $companyAddress;
  32.     /**
  33.      * @var string|null
  34.      *
  35.      * @ORM\Column(name="company_phone", type="string", length=40, nullable=true, options={"comment"="Cég telefonszám"})
  36.      */
  37.     private $companyPhone;
  38.     /**
  39.      * @var string|null
  40.      *
  41.      * @ORM\Column(name="company_mail", type="string", length=250, nullable=true, options={"comment"="Cég email"})
  42.      */
  43.     private $companyMail;
  44.     /**
  45.      * @var string|null
  46.      *
  47.      * @ORM\Column(name="company_other", type="text", length=65535, nullable=true, options={"comment"="Cég egyéb"})
  48.      */
  49.     private $companyOther;
  50.     /**
  51.      * @var int
  52.      *
  53.      * @ORM\Column(name="notice_arrived", type="integer", nullable=false, options={"default"="15","comment"="Jelzés érkezésről"})
  54.      */
  55.     private $noticeArrived '15';
  56.     /**
  57.      * @var int
  58.      *
  59.      * @ORM\Column(name="price_assembly", type="integer", nullable=false, options={"comment"="Szerelés óradíj"})
  60.      */
  61.     private $priceAssembly '0';
  62.     /**
  63.      * @var int
  64.      *
  65.      * @ORM\Column(name="price_bodyguard", type="integer", nullable=false, options={"comment"="Lakatos óradíj"})
  66.      */
  67.     private $priceBodyguard '0';
  68.     /**
  69.      * @var int
  70.      *
  71.      * @ORM\Column(name="price_paint", type="integer", nullable=false, options={"comment"="Festés óradíj"})
  72.      */
  73.     private $pricePaint '0';
  74.     /**
  75.      * @var float
  76.      *
  77.      * @ORM\Column(name="tax", type="float", precision=10, scale=0, nullable=false, options={"default"="1.27","comment"="Áfa"})
  78.      */
  79.     private $tax '1.27';
  80.     /**
  81.      * @var int
  82.      *
  83.      * @ORM\Column(name="technical_alert", type="integer", nullable=false, options={"default"="60","comment"="Műszaki jelzése"})
  84.      */
  85.     private $technicalAlert '60';
  86.     /**
  87.      * @var string|null
  88.      *
  89.      * @ORM\Column(name="logo", type="string", length=250, nullable=true, options={"comment"="Logo"})
  90.      */
  91.     private $logo;
  92.     /**
  93.      * @var string|null
  94.      *
  95.      * @ORM\Column(name="worksheet_note", type="text", length=65535, nullable=true, options={"comment"="Munkalap megjegyzés"})
  96.      */
  97.     private $worksheetNote;
  98.     /**
  99.      * @var string|null
  100.      *
  101.      * @ORM\Column(name="payoff_note", type="text", length=65535, nullable=true, options={"comment"="Elszámolás"})
  102.      */
  103.     private $payoffNote;
  104.     /**
  105.      * @var string|null
  106.      *
  107.      * @ORM\Column(name="quote_note", type="text", length=65535, nullable=true, options={"comment"="Ajánlat megjegyzés"})
  108.      */
  109.     private $quoteNote;
  110.     /**
  111.      * @var \DateTime
  112.      *
  113.      * @ORM\Column(name="modified", type="datetime", nullable=true, options={"comment"="Módosítva"})
  114.      */
  115.     private $modified;
  116.     /**
  117.      * @ORM\Column(type="integer", nullable=true)
  118.      */
  119.     private $page_size;
  120.     /**
  121.      * @ORM\Column(type="string", length=255, nullable=true)
  122.      */
  123.     private $site_title;
  124.     /**
  125.      * @ORM\Column(type="integer", nullable=true)
  126.      */
  127.     private $email_alert_days;
  128.     /**
  129.      * @ORM\Column(type="text", nullable=true)
  130.      */
  131.     private $event_internal_mail_template;
  132.     /**
  133.      * @ORM\Column(type="text", nullable=true)
  134.      */
  135.     private $event_customer_mail_template;
  136.     /**
  137.      * @ORM\Column(type="text", nullable=true)
  138.      */
  139.     private $technical_internal_mail_template;
  140.     /**
  141.      * @ORM\Column(type="text", nullable=true)
  142.      */
  143.     private $technical_customer_mail_template;
  144.     /**
  145.      * @ORM\Column(type="string", length=3)
  146.      */
  147.     private $currency;
  148.     public function getId(): ?int
  149.     {
  150.         return $this->id;
  151.     }
  152.     public function getCompanyName(): ?string
  153.     {
  154.         return $this->companyName;
  155.     }
  156.     public function setCompanyName(?string $companyName): self
  157.     {
  158.         $this->companyName $companyName;
  159.         return $this;
  160.     }
  161.     public function getCompanyAddress(): ?string
  162.     {
  163.         return $this->companyAddress;
  164.     }
  165.     public function setCompanyAddress(?string $companyAddress): self
  166.     {
  167.         $this->companyAddress $companyAddress;
  168.         return $this;
  169.     }
  170.     public function getCompanyPhone(): ?string
  171.     {
  172.         return $this->companyPhone;
  173.     }
  174.     public function setCompanyPhone(?string $companyPhone): self
  175.     {
  176.         $this->companyPhone $companyPhone;
  177.         return $this;
  178.     }
  179.     public function getCompanyMail(): ?string
  180.     {
  181.         return $this->companyMail;
  182.     }
  183.     public function setCompanyMail(?string $companyMail): self
  184.     {
  185.         $this->companyMail $companyMail;
  186.         return $this;
  187.     }
  188.     public function getCompanyOther(): ?string
  189.     {
  190.         return $this->companyOther;
  191.     }
  192.     public function setCompanyOther(?string $companyOther): self
  193.     {
  194.         $this->companyOther $companyOther;
  195.         return $this;
  196.     }
  197.     public function getNoticeArrived(): ?int
  198.     {
  199.         return $this->noticeArrived;
  200.     }
  201.     public function setNoticeArrived(int $noticeArrived): self
  202.     {
  203.         $this->noticeArrived $noticeArrived;
  204.         return $this;
  205.     }
  206.     public function getPriceAssembly(): ?int
  207.     {
  208.         return $this->priceAssembly;
  209.     }
  210.     public function setPriceAssembly(int $priceAssembly): self
  211.     {
  212.         $this->priceAssembly $priceAssembly;
  213.         return $this;
  214.     }
  215.     public function getPriceBodyguard(): ?int
  216.     {
  217.         return $this->priceBodyguard;
  218.     }
  219.     public function setPriceBodyguard(int $priceBodyguard): self
  220.     {
  221.         $this->priceBodyguard $priceBodyguard;
  222.         return $this;
  223.     }
  224.     public function getPricePaint(): ?int
  225.     {
  226.         return $this->pricePaint;
  227.     }
  228.     public function setPricePaint(int $pricePaint): self
  229.     {
  230.         $this->pricePaint $pricePaint;
  231.         return $this;
  232.     }
  233.     public function getTax(): ?float
  234.     {
  235.         return $this->tax;
  236.     }
  237.     public function setTax(float $tax): self
  238.     {
  239.         $this->tax $tax;
  240.         return $this;
  241.     }
  242.     public function getTechnicalAlert(): ?int
  243.     {
  244.         return $this->technicalAlert;
  245.     }
  246.     public function setTechnicalAlert(int $technicalAlert): self
  247.     {
  248.         $this->technicalAlert $technicalAlert;
  249.         return $this;
  250.     }
  251.     public function getLogo(): ?string
  252.     {
  253.         return  $this->logo;
  254.     }
  255.     public function getLogoBase64(): ?string
  256.     {
  257.         $path dirname(__FILE__) . '/../../storage/uploads/' $this->logo;
  258.         $type pathinfo($pathPATHINFO_EXTENSION);
  259.         $data file_get_contents($path);
  260.         $base64 'data:image/' $type ';base64,' base64_encode($data);
  261.         return  $base64;
  262.     }
  263.     public function setLogo(?string $logo): self
  264.     {
  265.         $this->logo $logo;
  266.         return $this;
  267.     }
  268.     public function getWorksheetNote(): ?string
  269.     {
  270.         return $this->worksheetNote;
  271.     }
  272.     public function setWorksheetNote(?string $worksheetNote): self
  273.     {
  274.         $this->worksheetNote $worksheetNote;
  275.         return $this;
  276.     }
  277.     public function getPayoffNote(): ?string
  278.     {
  279.         return $this->payoffNote;
  280.     }
  281.     public function setPayoffNote(?string $payoffNote): self
  282.     {
  283.         $this->payoffNote $payoffNote;
  284.         return $this;
  285.     }
  286.     public function getQuoteNote(): ?string
  287.     {
  288.         return $this->quoteNote;
  289.     }
  290.     public function setQuoteNote(?string $quoteNote): self
  291.     {
  292.         $this->quoteNote $quoteNote;
  293.         return $this;
  294.     }
  295.     public function getModified(): ?\DateTimeInterface
  296.     {
  297.         return $this->modified;
  298.     }
  299.     public function getPageSize(): ?int
  300.     {
  301.         return $this->page_size;
  302.     }
  303.     public function setPageSize(?int $page_size): self
  304.     {
  305.         $this->page_size $page_size;
  306.         return $this;
  307.     }
  308.     public function getSiteTitle(): ?string
  309.     {
  310.         return $this->site_title $this->site_title 'Garage';
  311.     }
  312.     public function setSiteTitle(?string $site_title): self
  313.     {
  314.         $this->site_title $site_title;
  315.         return $this;
  316.     }
  317.     public function getEmailAlertDays(): ?int
  318.     {
  319.         return $this->email_alert_days $this->email_alert_days 1;
  320.     }
  321.     public function setEmailAlertDays(?int $email_alert_days): self
  322.     {
  323.         $this->email_alert_days $email_alert_days;
  324.         return $this;
  325.     }
  326.     public function getEventInternalMailTemplate(): ?string
  327.     {
  328.         return $this->event_internal_mail_template;
  329.     }
  330.     public function setEventInternalMailTemplate(?string $event_internal_mail_template): self
  331.     {
  332.         $this->event_internal_mail_template $event_internal_mail_template;
  333.         return $this;
  334.     }
  335.     public function getEventCustomerMailTemplate(): ?string
  336.     {
  337.         return $this->event_customer_mail_template;
  338.     }
  339.     public function setEventCustomerMailTemplate(?string $event_customer_mail_template): self
  340.     {
  341.         $this->event_customer_mail_template $event_customer_mail_template;
  342.         return $this;
  343.     }
  344.     public function getTechnicalInternalMailTemplate(): ?string
  345.     {
  346.         return $this->technical_internal_mail_template;
  347.     }
  348.     public function setTechnicalInternalMailTemplate(?string $technical_internal_mail_template): self
  349.     {
  350.         $this->technical_internal_mail_template $technical_internal_mail_template;
  351.         return $this;
  352.     }
  353.     public function getTechnicalCustomerMailTemplate(): ?string
  354.     {
  355.         return $this->technical_customer_mail_template;
  356.     }
  357.     public function setTechnicalCustomerMailTemplate(?string $technical_customer_mail_template): self
  358.     {
  359.         $this->technical_customer_mail_template $technical_customer_mail_template;
  360.         return $this;
  361.     }
  362.     public function getCurrency(): ?string
  363.     {
  364.         return $this->currency;
  365.     }
  366.     public function setCurrency(string $currency): self
  367.     {
  368.         $this->currency $currency;
  369.         return $this;
  370.     }
  371. }