<?php
namespace App\Entity\System;
use App\Service\FiscalPositionService;
use Doctrine\ORM\Mapping as ORM;
/**
* @deprecated use constants or parameters instead
*
* @ORM\Entity(repositoryClass="App\Repository\System\ConfigurationRepository")
*
* @ORM\Table(name="ps_configuration",
* indexes={@ORM\Index(name="name", columns={"name"})}
* )
*/
class Configuration
{
public const CARRIER_SERVICES = 53;
public const WIRE_TRANSFER_DATA = '{"entidad":"Banco Santander","cuenta":"0049 4606 79 2616276072","iban":"ES35 0049 4606 7926 1627 6072","bic / swift":"BSCHESMMXXX"}';
public const CUSTOMER_FISCAL_POSITION_EXPORT = 'exportacion';
public const CUSTOMER_FISCAL_POSITION_INTRA_COMMUNITY = 'intracomunitario';
public const CUSTOMER_FISCAL_POSITION_NATIONAL = 'nacional';
public const CUSTOMER_FISCAL_POSITION_EQUIVALENCE_SURCHARGE = 'recargo';
public const FISCAL_POSITION_MAP = [
FiscalPositionService::CUSTOMER_FISCAL_POSITION_EXPORT_ID => self::CUSTOMER_FISCAL_POSITION_EXPORT,
FiscalPositionService::CUSTOMER_FISCAL_POSITION_INTRA_COMMUNITY_ID => self::CUSTOMER_FISCAL_POSITION_INTRA_COMMUNITY,
FiscalPositionService::CUSTOMER_FISCAL_POSITION_NATIONAL_ID => self::CUSTOMER_FISCAL_POSITION_NATIONAL,
FiscalPositionService::CUSTOMER_FISCAL_POSITION_EQUIVALENCE_SURCHARGE_ID => self::CUSTOMER_FISCAL_POSITION_EQUIVALENCE_SURCHARGE,
];
/**
* @var int
*
* @ORM\Id
*
* @ORM\GeneratedValue(strategy="AUTO")
*
* @ORM\Column(type="integer", name="id_configuration", options={"unsigned": true})
*/
private $id;
/**
* @var string
*
* @ORM\Column(type="string", length=32)
*/
private $name;
/**
* @var string|null
*
* @ORM\Column(type="text", nullable=true)
*/
private $value;
/**
* @return int
*/
public function getId(): int
{
return $this->id;
}
/**
* @param int $id
*
* @return Configuration
*/
public function setId(int $id): Configuration
{
$this->id = $id;
return $this;
}
/**
* @return string
*/
public function getName(): string
{
return $this->name;
}
/**
* @param string $name
*
* @return Configuration
*/
public function setName(string $name): Configuration
{
$this->name = $name;
return $this;
}
/**
* @return string|null
*/
public function getValue(): ?string
{
return $this->value;
}
/**
* @param string|null $value
*
* @return Configuration
*/
public function setValue(?string $value): Configuration
{
$this->value = $value;
return $this;
}
}