| Total Complexity | 3 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | class Endpoint |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * 请求地址 |
||
| 15 | * |
||
| 16 | * @var string |
||
| 17 | */ |
||
| 18 | private $host; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * 请求端口 |
||
| 22 | * |
||
| 23 | * @var integer |
||
| 24 | */ |
||
| 25 | private $port; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Endpoint constructor. |
||
| 29 | * @param string $host |
||
| 30 | * @param int $port |
||
| 31 | */ |
||
| 32 | public function __construct($host, $port) |
||
| 36 | } |
||
| 37 | |||
| 38 | /** |
||
| 39 | * 生成完整URL |
||
| 40 | * |
||
| 41 | * @param string $path |
||
| 42 | * @return Url |
||
| 43 | */ |
||
| 44 | public function makeUrl(string $path) |
||
| 52 |