1
0
Fork 0

Hopefully making the tests to work

This commit is contained in:
Michael 2021-07-25 14:27:13 +00:00
commit 540ddb9265
5 changed files with 82 additions and 83 deletions

View 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