src/Entity/Config.php line 15

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use App\Traits\CreatedUpdatedTrait;
  5. /**
  6.  * Config
  7.  *
  8.  * @ORM\Table(name="v_config")
  9.  * @ORM\Entity
  10.  *
  11.  */
  12. class Config
  13. {
  14.     /**
  15.      * @var integer
  16.      *
  17.      * @ORM\Column(name="id", type="integer")
  18.      * @ORM\Id
  19.      * @ORM\GeneratedValue(strategy="AUTO")
  20.      */
  21.     private $id;
  22.     /**
  23.      * @var string
  24.      *
  25.      * @ORM\Column(name="config_key", type="string", length=255, unique=true)
  26.      */
  27.     private $configKey;
  28.     /**
  29.      * @var string
  30.      *
  31.      * @ORM\Column(name="config_value", type="text", nullable=true)
  32.      */
  33.     private $configValue;
  34.     use CreatedUpdatedTrait;
  35. //    public function __construct($key)
  36. //    {
  37. //        $this->configKey = $key;
  38. //    }
  39.     /**
  40.      * Get id
  41.      *
  42.      * @return integer
  43.      */
  44.     public function getId()
  45.     {
  46.         return $this->id;
  47.     }
  48.     /**
  49.      * Set configKey
  50.      *
  51.      * @param string $configKey
  52.      * @return Config
  53.      */
  54.     public function setConfigKey($configKey)
  55.     {
  56.         $this->configKey $configKey;
  57.         return $this;
  58.     }
  59.     /**
  60.      * Get configKey
  61.      *
  62.      * @return string
  63.      */
  64.     public function getConfigKey()
  65.     {
  66.         return $this->configKey;
  67.     }
  68.     /**
  69.      * Set configValue
  70.      *
  71.      * @param string $configValue
  72.      * @return Config
  73.      */
  74.     public function setConfigValue($configValue)
  75.     {
  76.         $this->configValue $configValue;
  77.         return $this;
  78.     }
  79.     /**
  80.      * Get configValue
  81.      *
  82.      * @return string
  83.      */
  84.     public function getConfigValue()
  85.     {
  86.         return $this->configValue;
  87.     }
  88. }