<?php
namespace App\Entity;
use App\Repository\OptionRepository;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Blameable\Traits\BlameableEntity;
use Gedmo\Timestampable\Traits\TimestampableEntity;
use Symfony\Component\Validator\Constraints as Assert;
#[ORM\Entity(repositoryClass: OptionRepository::class)]
class Option extends BaseKeyValue
{
use BlameableEntity; //Hook blameable behaviour. Updates createdBy, updatedBy fields
use TimestampableEntity; //Hook timestampable behaviour. Updates createdAt, updatedAt fields
const DEFAULT_ITEMS_PER_PAGE = 'DEFAULT_ITEMS_PER_PAGE';
const URL_USE_CONDITION = 'URL_USE_CONDITION';
const URL_POLICY_TERMS = 'URL_POLICY_TERMS';
const TPV_URL = 'TPV_URL';
const TPV_KEY = 'TPV_KEY';
const TPV_FUC = 'TPV_FUC';
const TPV_TERMINAL = 'TPV_TERMINAL';
const HOLDED_API_KEY = 'HOLDED_API_KEY';
const PASSWORD_MINIMUM_LENGTH = 'PASSWORD_MINIMUM_LENGTH';
const PASSWORD_MINIMUM_STRENGTH = 'PASSWORD_MINIMUM_STRENGTH';
const TAX_FOR_SHIPPINGS = 'TAX_FOR_SHIPPINGS';
const CUSTOMER_NAME_TO_INVOICE = 'customer_name_to_invoice';
const CUSTOMER_DEFAULT_TO_INVOICE = 'customer_default_to_invoice';
const ADDRESS_DEFAULT_TO_INVOICE ='address_default_to_invoice';
const CITY_DEFAULT_TO_INVOICE ='city_default_to_invoice';
const CP_DEFAULT_INVOICE ='cp_default_to_invoice';
const COUNTRY_DEFAULT_INVOICE ='country_default_to_invoice';
const CODE_DEFAULT_INVOICE ='code_default_to_invoice';
const OPTION_META_TITLE_DEFAULT ='meta_title_default';
const OPTION_META_DESCRIPTION_DEFAULT ='meta_description_default';
const OPTION_SIMPLE_REGISTRATION_FORM = 'simple_registration_form';
#[ORM\Id]
#[ORM\GeneratedValue(strategy: "IDENTITY")]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 511)]
#[Assert\NotNull()]
#[Assert\Length(max: 511)]
private ?string $description = null;
public function getId(): ?int
{
return $this->id;
}
public function getDescription(): ?string
{
return $this->description;
}
public function setDescription(string $description): self
{
$this->description = $description;
return $this;
}
}