]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/Process.php
Make Storage testable & add tests
[friendica.git] / src / Model / Process.php
index 40f0c52bdb4e361b9a3ef8f5d8bd57e890cf9b8c..7c9f886dfa15e02c95f854f6947b050b41c7bc44 100644 (file)
@@ -4,16 +4,13 @@
  */
 namespace Friendica\Model;
 
-use Friendica\BaseObject;
 use Friendica\Database\DBA;
 use Friendica\Util\DateTimeFormat;
 
-require_once 'include/dba.php';
-
 /**
  * @brief functions for interacting with a process
  */
-class Process extends BaseObject
+class Process
 {
        /**
         * Insert a new process row. If the pid parameter is omitted, we use the current pid
@@ -21,6 +18,7 @@ class Process extends BaseObject
         * @param string $command
         * @param string $pid
         * @return bool
+        * @throws \Exception
         */
        public static function insert($command, $pid = null)
        {
@@ -46,6 +44,7 @@ class Process extends BaseObject
         *
         * @param string $pid
         * @return bool
+        * @throws \Exception
         */
        public static function deleteByPid($pid = null)
        {