| 1 | <?php declare(strict_types=1); |
||
| 11 | class ProxyServerAddress |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var string $address |
||
| 15 | */ |
||
| 16 | private $address; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var int $port |
||
| 20 | */ |
||
| 21 | private $port = 80; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var string http|https |
||
| 25 | */ |
||
| 26 | private $schema; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @param string $address |
||
| 30 | * @return ProxyServerAddress |
||
| 31 | */ |
||
| 32 | public function setAddress(string $address): ProxyServerAddress |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @param int $port |
||
| 40 | * @return ProxyServerAddress |
||
| 41 | */ |
||
| 42 | public function setPort(int $port): ProxyServerAddress |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @param string $schema |
||
| 50 | * @return ProxyServerAddress |
||
| 51 | */ |
||
| 52 | public function setSchema(string $schema): ProxyServerAddress |
||
| 57 | |||
| 58 | /** |
||
| 59 | * @return bool |
||
| 60 | */ |
||
| 61 | public function isSecure(): bool |
||
| 65 | |||
| 66 | /** |
||
| 67 | * @return string |
||
| 68 | */ |
||
| 69 | public function getAddress(): string |
||
| 73 | |||
| 74 | /** |
||
| 75 | * @return int |
||
| 76 | */ |
||
| 77 | public function getPort(): int |
||
| 81 | |||
| 82 | /** |
||
| 83 | * @return string |
||
| 84 | */ |
||
| 85 | public function getSchema(): string |
||
| 89 | |||
| 90 | /** |
||
| 91 | * @return string |
||
| 92 | */ |
||
| 93 | public function getFormatted() |
||
| 97 | } |
||
| 98 |