]> git.mxchange.org Git - friendica.git/blobdiff - src/App/Arguments.php
Merge pull request #10953 from annando/bott-shrinked
[friendica.git] / src / App / Arguments.php
index de3fecf9edbe476e92f6d2976304c10f2244f94e..ae6c64a4f39715db1577e29a04d7ec7e294f659a 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2021, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -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