mirror of
https://github.com/bitinflow/expose.git
synced 2026-03-13 13:35:54 +00:00
50 lines
796 B
PHP
50 lines
796 B
PHP
<?php
|
|
|
|
namespace App\Client;
|
|
|
|
class Configuration
|
|
{
|
|
/** @var string */
|
|
protected $host;
|
|
|
|
/** @var int */
|
|
protected $port;
|
|
|
|
/** @var string|null */
|
|
protected $auth;
|
|
|
|
/** @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
|
|
{
|
|
return $this->host;
|
|
}
|
|
|
|
public function auth(): ?string
|
|
{
|
|
return $this->auth;
|
|
}
|
|
|
|
public function port(): int
|
|
{
|
|
return $this->port;
|
|
}
|
|
|
|
public function authToken()
|
|
{
|
|
return $this->authToken;
|
|
}
|
|
}
|