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.      * @var int
  16.      *
  17.      * @ORM\Id
  18.      *
  19.      * @ORM\GeneratedValue(strategy="AUTO")
  20.      *
  21.      * @ORM\Column(type="integer", name="id_configuration", options={"unsigned": true})
  22.      */
  23.     private $id;
  24.     /**
  25.      * @var string
  26.      *
  27.      * @ORM\Column(type="string", length=32)
  28.      */
  29.     private $name;
  30.     /**
  31.      * @var string|null
  32.      *
  33.      * @ORM\Column(type="text", nullable=true)
  34.      */
  35.     private $value;
  36.     /**
  37.      * @return int
  38.      */
  39.     public function getId(): int
  40.     {
  41.         return $this->id;
  42.     }
  43.     /**
  44.      * @param int $id
  45.      *
  46.      * @return Configuration
  47.      */
  48.     public function setId(int $id): Configuration
  49.     {
  50.         $this->id $id;
  51.         return $this;
  52.     }
  53.     /**
  54.      * @return string
  55.      */
  56.     public function getName(): string
  57.     {
  58.         return $this->name;
  59.     }
  60.     /**
  61.      * @param string $name
  62.      *
  63.      * @return Configuration
  64.      */
  65.     public function setName(string $name): Configuration
  66.     {
  67.         $this->name $name;
  68.         return $this;
  69.     }
  70.     /**
  71.      * @return string|null
  72.      */
  73.     public function getValue(): ?string
  74.     {
  75.         return $this->value;
  76.     }
  77.     /**
  78.      * @param string|null $value
  79.      *
  80.      * @return Configuration
  81.      */
  82.     public function setValue(?string $value): Configuration
  83.     {
  84.         $this->value $value;
  85.         return $this;
  86.     }
  87. }