| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | public static function missPrimaryKeyRecord(string $tableName, array $primaryKeys, string $className, $previous) : self |
||
| 21 | { |
||
| 22 | $primaryKeysStringified = implode(' and ', array_map(function ($key, $value) { |
||
| 23 | return "'".$key."' = ".$value; |
||
| 24 | }, array_keys($primaryKeys), $primaryKeys)); |
||
| 25 | $exception = new self("No result found for query on table '".$tableName."' for ".$primaryKeysStringified, 0, $previous); |
||
| 26 | $exception->tableName = $tableName; |
||
| 27 | $exception->primaryKeys = $primaryKeys; |
||
| 28 | $exception->className = $className; |
||
| 29 | |||
| 30 | return $exception; |
||
| 31 | } |
||
| 63 |