| @@ 30-38 (lines=9) @@ | ||
| 27 | * @return BaseDns|static |
|
| 28 | * @throws EmptyArgumentException |
|
| 29 | */ |
|
| 30 | public function setDbName(string $dbName) : self { |
|
| 31 | $this->dbName = trim($dbName); |
|
| 32 | ||
| 33 | if ($this->dbName === '') { |
|
| 34 | throw new EmptyArgumentException('dbName'); |
|
| 35 | } |
|
| 36 | ||
| 37 | return $this; |
|
| 38 | } |
|
| 39 | ||
| 40 | /** |
|
| 41 | * @return string |
|
| @@ 57-65 (lines=9) @@ | ||
| 54 | * @return MySqlUnixSocketDsn |
|
| 55 | * @throws EmptyArgumentException |
|
| 56 | */ |
|
| 57 | public function setDbName(string $dbName) : self { |
|
| 58 | $this->dbName = trim($dbName); |
|
| 59 | ||
| 60 | if ($this->dbName == '') { |
|
| 61 | throw new EmptyArgumentException('dbName'); |
|
| 62 | } |
|
| 63 | ||
| 64 | return $this; |
|
| 65 | } |
|
| 66 | ||
| 67 | /** |
|
| 68 | * @return string |
|