src/Entity/Setting.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\SettingRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=SettingRepository::class)
  7.  */
  8. class Setting
  9. {
  10.     public CONST PRINTING_KEY 'printing';
  11.     public CONST PACKAGE_KEY 'package';
  12.     public CONST QUESTIONS_KEY 'questions';
  13.     public CONST FORM_PDF_KEY 'formPdf';
  14.     public CONST BADGE_KEY 'badge_type';
  15.     public CONST APP_NAME_KEY 'app_name';
  16.     public CONST FAVICON_KEY 'favicon';
  17.     public CONST LOGO_KEY 'logo';
  18.     public CONST CUSTOM_FIELDS_KEY 'custom_fields';
  19.     public CONST FORM_TERMS_AND_CONDITIONS_KEY 'termsAndConditions';
  20.     public CONST MAILER_DSN 'mailerDsn';
  21.     public CONST MAILER_SEND_ADDRESS 'mailerSendAddress';
  22.     public CONST MAILER_SEND_NAME 'mailerSendName';
  23.     public CONST DEVELOPED_BY_KEY 'developedBy';
  24.     public const PRINTING_ID 2;
  25.     public CONST MAILER_DSN_ID 11;
  26.     public CONST MAILER_SEND_ADDRESS_ID 12;
  27.     public CONST MAILER_SEND_NAME_ID 13;
  28.     public CONST START_DATE_ID 14;
  29.     public CONST END_DATE_ID 15;
  30.     public CONST AVAILABLE_AT_MESSAGE_ID 16;
  31.     public CONST ENDED_AT_MESSAGE_ID 17;
  32.     public CONST GDPR_ID 18;
  33.     public CONST DEVELOPED_BY_ID 19;
  34.     public CONST ACTIVE_BOOLEAN_KEYS = [
  35.         self::PRINTING_KEY,
  36.         self::PACKAGE_KEY,
  37.         self::QUESTIONS_KEY,
  38.         self::FORM_PDF_KEY,
  39.         self::CUSTOM_FIELDS_KEY,
  40.         self::DEVELOPED_BY_KEY
  41.     ];
  42.     public CONST ACTIVE_UPLOAD_KEYS = [
  43.         self::FORM_TERMS_AND_CONDITIONS_KEY
  44.     ];
  45.     /**
  46.      * @ORM\Id
  47.      * @ORM\GeneratedValue
  48.      * @ORM\Column(type="integer")
  49.      */
  50.     private $id;
  51.     /**
  52.      * @ORM\Column(type="string", length=50)
  53.      */
  54.     private $name;
  55.     /**
  56.      * @ORM\Column(type="text")
  57.      */
  58.     private $value;
  59.     /**
  60.      * @ORM\Column(type="string", length=100)
  61.      */
  62.     private $translationKey;
  63.     /**
  64.      * @ORM\ManyToOne(targetEntity=InputType::class, inversedBy="settings")
  65.      * @ORM\JoinColumn(nullable=true)
  66.      */
  67.     private $inputType;
  68.     public function getId(): ?int
  69.     {
  70.         return $this->id;
  71.     }
  72.     public function getName(): ?string
  73.     {
  74.         return $this->name;
  75.     }
  76.     public function setName(string $name): self
  77.     {
  78.         $this->name $name;
  79.         return $this;
  80.     }
  81.     public function getValue(): ?string
  82.     {
  83.         return $this->value;
  84.     }
  85.     public function setValue(string $value): self
  86.     {
  87.         $this->value $value;
  88.         return $this;
  89.     }
  90.     public function getTranslationKey(): ?string
  91.     {
  92.         return $this->translationKey;
  93.     }
  94.     public function setTranslationKey(string $translationKey): self
  95.     {
  96.         $this->translationKey $translationKey;
  97.         return $this;
  98.     }
  99.     public function getInputType(): ?InputType
  100.     {
  101.         return $this->inputType;
  102.     }
  103.     public function setInputType(?InputType $inputType): self
  104.     {
  105.         $this->inputType $inputType;
  106.         return $this;
  107.     }
  108. }