| @@ 52-60 (lines=9) @@ | ||
| 49 | * @return BaseDns|static |
|
| 50 | * @throws EmptyArgumentException |
|
| 51 | */ |
|
| 52 | public function setHost(string $host) : self { |
|
| 53 | $this->host = trim($host); |
|
| 54 | ||
| 55 | if ($this->host === '') { |
|
| 56 | throw new EmptyArgumentException('host'); |
|
| 57 | } |
|
| 58 | ||
| 59 | return $this; |
|
| 60 | } |
|
| 61 | ||
| 62 | /** |
|
| 63 | * @return string |
|
| @@ 32-40 (lines=9) @@ | ||
| 29 | * @return SqliteDsn |
|
| 30 | * @throws EmptyArgumentException |
|
| 31 | */ |
|
| 32 | public function setPath(string $path) : self { |
|
| 33 | $this->path = trim($path); |
|
| 34 | ||
| 35 | if ($this->path === '') { |
|
| 36 | throw new EmptyArgumentException('path'); |
|
| 37 | } |
|
| 38 | ||
| 39 | return $this; |
|
| 40 | } |
|
| 41 | ||
| 42 | /** |
|
| 43 | * @return string |
|