<?php
/**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2021, the Friendica project
*
* @license GNU AGPL version 3 or any later version
*
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