mirror of
https://github.com/bitinflow/expose.git
synced 2026-03-13 21:45:55 +00:00
30 lines
442 B
PHP
30 lines
442 B
PHP
<?php
|
|
|
|
namespace App\Server;
|
|
|
|
class Configuration
|
|
{
|
|
/** @var string */
|
|
protected $hostname;
|
|
|
|
/** @var int */
|
|
protected $port;
|
|
|
|
public function __construct(string $hostname, int $port)
|
|
{
|
|
$this->hostname = $hostname;
|
|
|
|
$this->port = $port;
|
|
}
|
|
|
|
public function hostname(): string
|
|
{
|
|
return $this->hostname;
|
|
}
|
|
|
|
public function port(): int
|
|
{
|
|
return $this->port;
|
|
}
|
|
}
|