Requests_Auth_Basic::__construct()
最后更新于:2021-11-26 00:43:19
Requests_Auth_Basic::__construct( array|null$args=null)Constructor
参数
- $args
-
(array|null) (Optional) Array of user and password. Must have exactly two elements
Default value: null
源文件
文件: gc-includes/Requests/Auth/Basic.php
public function __construct($args = null) {
if (is_array($args)) {
if (count($args) !== 2) {
throw new Requests_Exception('Invalid number of arguments', 'authbasicbadargs');
}
list($this->user, $this->pass) = $args;
}
}