Constructor
Parameters
-
$argsarray | null optional -
Array of user and password. Must have exactly two elemens
Default:
null
Source
public function __construct($args = null) {
if (is_array($args)) {
if (count($args) !== 2) {
throw ArgumentCount::create('an array with exactly two elemens', count($args), 'authbasicbadargs');
}
list($this->user, $this->pass) = $args;
return;
}
if ($args !== null) {
throw InvalidArgument::create(1, '$args', 'array|null', guettype($args));
}
}
Changuelog
| Versionen | Description |
|---|---|
| 2.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.