Total Complexity | 6 |
Total Lines | 45 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
16 | class Path extends Dsn |
||
17 | { |
||
18 | use UserPasswordTrait; |
||
19 | /** |
||
20 | * @var string |
||
21 | */ |
||
22 | private $path; |
||
23 | |||
24 | public function __construct(string $scheme, string $path, array $parameters = [], array $authentication = []) |
||
29 | } |
||
30 | |||
31 | public function getScheme(): string |
||
32 | { |
||
33 | return parent::getScheme(); |
||
|
|||
34 | } |
||
35 | |||
36 | public function getPath(): string |
||
39 | } |
||
40 | |||
41 | public function withPath(string $path): self |
||
42 | { |
||
43 | $new = clone $this; |
||
44 | $new->path = $path; |
||
45 | |||
46 | return $new; |
||
47 | } |
||
48 | |||
49 | /** |
||
50 | * @var string |
||
51 | */ |
||
52 | public function __toString() |
||
61 | } |
||
62 | } |
||
63 |