]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/Config/DbaConfig.php
Check and add a server
[friendica.git] / src / Model / Config / DbaConfig.php
index bbd62c7cbe1e64af6fb01e1de60db3755899656d..87bc6004123f1ac3000784abbddd906887aea5c1 100644 (file)
@@ -1,17 +1,43 @@
 <?php
+/**
+ * @copyright Copyright (C) 2020, Friendica
+ *
+ * @license GNU AGPL version 3 or any later version
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program 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 Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program.  If not, see <https://www.gnu.org/licenses/>.
+ *
+ */
 
 namespace Friendica\Model\Config;
 
 use Friendica\Database\Database;
 
+/**
+ * The DB-based model of (P-)Config values
+ * Encapsulates db-calls in case of config queries
+ */
 abstract class DbaConfig
 {
        /** @var Database */
        protected $dba;
 
+       /**
+        * @param Database $dba The database connection of this model
+        */
        public function __construct(Database $dba)
        {
-               $this->dba    = $dba;
+               $this->dba = $dba;
        }
 
        /**