Source of file Config.php
Size: 2,667 Bytes - Last Modified: 2020-10-24T02:46:31+00:00
/home/travis/build/NextDom/nextdom-core/src/Model/Entity/Config.php
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134 | <?php /* This file is part of NextDom Software. * * NextDom is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * NextDom Software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with NextDom Software. If not, see <http://www.gnu.org/licenses/>. */ namespace NextDom\Model\Entity; /** * Config object * Used for store core configuration * * @ORM\Table(name="config") * @ORM\Entity */ class Config { /** * @var string Value to store * * @ORM\Column(name="value", type="text", length=65535, nullable=true) */ protected $value; /** * @var string Key for storage * * @ORM\Column(name="key", type="string", length=255) * @ORM\Id * @ORM\GeneratedValue(strategy="NONE") */ protected $key; /** * @var string Linked plugin or 'core' * * @ORM\Column(name="plugin", type="string", length=127) * @ORM\Id * @ORM\GeneratedValue(strategy="NONE") */ protected $plugin; /** * Get the value of the config * * @return string */ public function getValue() { return $this->value; } /** * Set the value for the config * * @param $value * * @return $this */ public function setValue($value) { $this->value = $value; return $this; } /** * Get the key of the config * * @return string */ public function getKey(): string { return $this->key; } /** * Set the key of the config * * @param $key * * @return $this */ public function setKey($key) { $this->key = $key; return $this; } /** * Get linked plugin * * @return string */ public function getPlugin() { return $this->plugin; } /** * Set linked plugin * * @param $plugin * * @return $this */ public function setPlugin($plugin) { $this->plugin = $plugin; return $this; } /** * Get the name of the SQL table where data is stored. * * @return string */ public function getTableName() { return 'config'; } } |