1 | <?php declare(strict_types=1); |
||
9 | final class BuiltInPhpHttpServer implements HttpServer |
||
10 | { |
||
11 | use LoggerAwareTrait; |
||
12 | |||
13 | /** @var string */ |
||
14 | private $host = ''; |
||
15 | |||
16 | /** @var int */ |
||
17 | private $port = 0; |
||
18 | |||
19 | /** @var string */ |
||
20 | private $routerPath = ''; |
||
21 | |||
22 | /** @var string */ |
||
23 | private $docRoot = ''; |
||
24 | |||
25 | public function __construct(string $host, int $port, string $routerPath, string $docRoot) |
||
41 | |||
42 | public function listen() |
||
56 | } |
||
57 |