| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 9 |
| Ratio | 100 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 57 | View Code Duplication | 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 | |||
| 78 |
This check compares the return type specified in the
@returnannotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.