mirror of
https://github.com/bitinflow/expose.git
synced 2026-03-13 13:35:54 +00:00
wip
This commit is contained in:
@@ -13,13 +13,18 @@ class Configuration
|
||||
/** @var string|null */
|
||||
protected $auth;
|
||||
|
||||
public function __construct(string $host, int $port, ?string $auth = null)
|
||||
/** @var string|null */
|
||||
protected $authToken;
|
||||
|
||||
public function __construct(string $host, int $port, ?string $auth = null, string $authToken = null)
|
||||
{
|
||||
$this->host = $host;
|
||||
|
||||
$this->port = $port;
|
||||
|
||||
$this->auth = $auth;
|
||||
|
||||
$this->authToken = $authToken;
|
||||
}
|
||||
|
||||
public function host(): string
|
||||
@@ -36,4 +41,9 @@ class Configuration
|
||||
{
|
||||
return $this->port;
|
||||
}
|
||||
|
||||
public function authToken()
|
||||
{
|
||||
return $this->authToken;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user