| Total Complexity | 8 |
| Total Lines | 58 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 17 | class Url extends Dsn |
||
| 18 | { |
||
| 19 | use UserPasswordTrait; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var string |
||
| 23 | */ |
||
| 24 | private $host; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @var int|null |
||
| 28 | */ |
||
| 29 | private $port; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @var string|null |
||
| 33 | */ |
||
| 34 | private $path; |
||
| 35 | |||
| 36 | public function __construct(?string $scheme, string $host, ?int $port = null, ?string $path = null, array $parameters = [], array $authentication = []) |
||
| 43 | } |
||
| 44 | |||
| 45 | public function getHost(): string |
||
| 46 | { |
||
| 47 | return $this->host; |
||
| 48 | } |
||
| 49 | |||
| 50 | public function getPort(): ?int |
||
| 51 | { |
||
| 52 | return $this->port; |
||
| 53 | } |
||
| 54 | |||
| 55 | public function getPath(): ?string |
||
| 56 | { |
||
| 57 | return $this->path; |
||
| 58 | } |
||
| 59 | |||
| 60 | /** |
||
| 61 | * @var string |
||
| 62 | */ |
||
| 63 | public function __toString() |
||
| 75 | } |
||
| 76 | } |
||
| 77 |