]> git.mxchange.org Git - friendica.git/blobdiff - src/App/Arguments.php
Merge remote-tracking branch 'upstream/develop' into api-rework
[friendica.git] / src / App / Arguments.php
index a7cb37f28906319065b4f44333b3fb37277dac65..ae6c64a4f39715db1577e29a04d7ec7e294f659a 100644 (file)
@@ -87,6 +87,17 @@ class Arguments
                return $this->argc;
        }
 
+       public function setArgv(array $argv)
+       {
+               $this->argv = $argv;
+               $this->argc = count($argv);
+       }
+
+       public function setArgc(int $argc)
+       {
+               $this->argc = $argc;
+       }
+
        /**
         * Returns the value of a argv key
         * @todo there are a lot of $a->argv usages in combination with ?? which can be replaced with this method