src/Entity/System/Configuration.php line 16

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