| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | public static function createRecords(string $tableName, array $records): Request |
||
| 13 | { |
||
| 14 | Assert::thatAll($records) |
||
| 15 | ->keyExists('fields'); |
||
| 16 | |||
| 17 | return new self( |
||
| 18 | 'POST', |
||
| 19 | $tableName, |
||
| 20 | [ |
||
| 21 | 'Content-Type' => 'application/json', |
||
| 22 | ], |
||
| 23 | json_encode( |
||
| 24 | [ |
||
| 25 | 'records' => $records |
||
| 26 | ] |
||
| 31 |