| Conditions | 3 | 
| Paths | 3 | 
| Total Lines | 18 | 
| Code Lines | 8 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 8 | 
| CRAP Score | 3 | 
| Changes | 0 | ||
| 1 | <?php | ||
| 36 | 17 | public function toString(): string | |
| 37 |     { | ||
| 38 | 17 | if(empty($this->tables)) | |
| 39 |         { | ||
| 40 | 3 | return ''; | |
| 41 | } | ||
| 42 | |||
| 43 | 14 | $tables = array(); | |
| 44 | |||
| 45 | 14 | foreach($this->tables as $table) | |
| 46 |         { | ||
| 47 | 14 | $tables[] = $table->toString(); | |
| 48 | } | ||
| 49 | |||
| 50 | 14 |         $tablesString = implode(', ', array_filter($tables)); | |
| 51 | |||
| 52 | 14 |         return sprintf('UPDATE %s', $tablesString); | |
| 53 | } | ||
| 54 | |||
| 68 |