src/Entity/System/Configuration.php line 17

Open in your IDE?
  1. <?php
  2. namespace App\Entity\System;
  3. use App\Service\FiscalPositionService;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @deprecated use constants or parameters instead
  7.  *
  8.  * @ORM\Entity(repositoryClass="App\Repository\System\ConfigurationRepository")
  9.  *
  10.  * @ORM\Table(name="ps_configuration",
  11.  *     indexes={@ORM\Index(name="name", columns={"name"})}
  12.  *     )
  13.  */
  14. class Configuration
  15. {
  16.     public const CARRIER_SERVICES 53;
  17.     public const WIRE_TRANSFER_DATA '{"entidad":"Banco Santander","cuenta":"0049 4606 79 2616276072","iban":"ES35 0049 4606 7926 1627 6072","bic / swift":"BSCHESMMXXX"}';
  18.     public const CUSTOMER_FISCAL_POSITION_EXPORT 'exportacion';
  19.     public const CUSTOMER_FISCAL_POSITION_INTRA_COMMUNITY 'intracomunitario';
  20.     public const CUSTOMER_FISCAL_POSITION_NATIONAL 'nacional';
  21.     public const CUSTOMER_FISCAL_POSITION_EQUIVALENCE_SURCHARGE 'recargo';
  22.     public const FISCAL_POSITION_MAP = [
  23.         FiscalPositionService::CUSTOMER_FISCAL_POSITION_EXPORT_ID => self::CUSTOMER_FISCAL_POSITION_EXPORT,
  24.         FiscalPositionService::CUSTOMER_FISCAL_POSITION_INTRA_COMMUNITY_ID => self::CUSTOMER_FISCAL_POSITION_INTRA_COMMUNITY,
  25.         FiscalPositionService::CUSTOMER_FISCAL_POSITION_NATIONAL_ID => self::CUSTOMER_FISCAL_POSITION_NATIONAL,
  26.         FiscalPositionService::CUSTOMER_FISCAL_POSITION_EQUIVALENCE_SURCHARGE_ID => self::CUSTOMER_FISCAL_POSITION_EQUIVALENCE_SURCHARGE,
  27.     ];
  28.     /**
  29.      * @var int
  30.      *
  31.      * @ORM\Id
  32.      *
  33.      * @ORM\GeneratedValue(strategy="AUTO")
  34.      *
  35.      * @ORM\Column(type="integer", name="id_configuration", options={"unsigned": true})
  36.      */
  37.     private $id;
  38.     /**
  39.      * @var string
  40.      *
  41.      * @ORM\Column(type="string", length=32)
  42.      */
  43.     private $name;
  44.     /**
  45.      * @var string|null
  46.      *
  47.      * @ORM\Column(type="text", nullable=true)
  48.      */
  49.     private $value;
  50.     /**
  51.      * @return int
  52.      */
  53.     public function getId(): int
  54.     {
  55.         return $this->id;
  56.     }
  57.     /**
  58.      * @param int $id
  59.      *
  60.      * @return Configuration
  61.      */
  62.     public function setId(int $id): Configuration
  63.     {
  64.         $this->id $id;
  65.         return $this;
  66.     }
  67.     /**
  68.      * @return string
  69.      */
  70.     public function getName(): string
  71.     {
  72.         return $this->name;
  73.     }
  74.     /**
  75.      * @param string $name
  76.      *
  77.      * @return Configuration
  78.      */
  79.     public function setName(string $name): Configuration
  80.     {
  81.         $this->name $name;
  82.         return $this;
  83.     }
  84.     /**
  85.      * @return string|null
  86.      */
  87.     public function getValue(): ?string
  88.     {
  89.         return $this->value;
  90.     }
  91.     /**
  92.      * @param string|null $value
  93.      *
  94.      * @return Configuration
  95.      */
  96.     public function setValue(?string $value): Configuration
  97.     {
  98.         $this->value $value;
  99.         return $this;
  100.     }
  101. }