<?phpnamespace App\Entity;use Doctrine\ORM\Mapping as ORM;use App\Traits\CreatedUpdatedTrait;/** * Config * * @ORM\Table(name="v_config") * @ORM\Entity * */class Config{ /** * @var integer * * @ORM\Column(name="id", type="integer") * @ORM\Id * @ORM\GeneratedValue(strategy="AUTO") */ private $id; /** * @var string * * @ORM\Column(name="config_key", type="string", length=255, unique=true) */ private $configKey; /** * @var string * * @ORM\Column(name="config_value", type="text", nullable=true) */ private $configValue; use CreatedUpdatedTrait;// public function __construct($key)// {// $this->configKey = $key;// } /** * Get id * * @return integer */ public function getId() { return $this->id; } /** * Set configKey * * @param string $configKey * @return Config */ public function setConfigKey($configKey) { $this->configKey = $configKey; return $this; } /** * Get configKey * * @return string */ public function getConfigKey() { return $this->configKey; } /** * Set configValue * * @param string $configValue * @return Config */ public function setConfigValue($configValue) { $this->configValue = $configValue; return $this; } /** * Get configValue * * @return string */ public function getConfigValue() { return $this->configValue; }}