<?php
namespace App\Entity;
use App\Repository\SettingRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=SettingRepository::class)
*/
class Setting
{
public CONST PRINTING_KEY = 'printing';
public CONST PACKAGE_KEY = 'package';
public CONST QUESTIONS_KEY = 'questions';
public CONST FORM_PDF_KEY = 'formPdf';
public CONST BADGE_KEY = 'badge_type';
public CONST APP_NAME_KEY = 'app_name';
public CONST FAVICON_KEY = 'favicon';
public CONST LOGO_KEY = 'logo';
public CONST CUSTOM_FIELDS_KEY = 'custom_fields';
public CONST FORM_TERMS_AND_CONDITIONS_KEY = 'termsAndConditions';
public CONST MAILER_DSN = 'mailerDsn';
public CONST MAILER_SEND_ADDRESS = 'mailerSendAddress';
public CONST MAILER_SEND_NAME = 'mailerSendName';
public CONST DEVELOPED_BY_KEY = 'developedBy';
public const PRINTING_ID = 2;
public CONST MAILER_DSN_ID = 11;
public CONST MAILER_SEND_ADDRESS_ID = 12;
public CONST MAILER_SEND_NAME_ID = 13;
public CONST START_DATE_ID = 14;
public CONST END_DATE_ID = 15;
public CONST AVAILABLE_AT_MESSAGE_ID = 16;
public CONST ENDED_AT_MESSAGE_ID = 17;
public CONST GDPR_ID = 18;
public CONST DEVELOPED_BY_ID = 19;
public CONST ACTIVE_BOOLEAN_KEYS = [
self::PRINTING_KEY,
self::PACKAGE_KEY,
self::QUESTIONS_KEY,
self::FORM_PDF_KEY,
self::CUSTOM_FIELDS_KEY,
self::DEVELOPED_BY_KEY
];
public CONST ACTIVE_UPLOAD_KEYS = [
self::FORM_TERMS_AND_CONDITIONS_KEY
];
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=50)
*/
private $name;
/**
* @ORM\Column(type="text")
*/
private $value;
/**
* @ORM\Column(type="string", length=100)
*/
private $translationKey;
/**
* @ORM\ManyToOne(targetEntity=InputType::class, inversedBy="settings")
* @ORM\JoinColumn(nullable=true)
*/
private $inputType;
public function getId(): ?int
{
return $this->id;
}
public function getName(): ?string
{
return $this->name;
}
public function setName(string $name): self
{
$this->name = $name;
return $this;
}
public function getValue(): ?string
{
return $this->value;
}
public function setValue(string $value): self
{
$this->value = $value;
return $this;
}
public function getTranslationKey(): ?string
{
return $this->translationKey;
}
public function setTranslationKey(string $translationKey): self
{
$this->translationKey = $translationKey;
return $this;
}
public function getInputType(): ?InputType
{
return $this->inputType;
}
public function setInputType(?InputType $inputType): self
{
$this->inputType = $inputType;
return $this;
}
}