File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -58,18 +58,23 @@ protected function populateResult(Response $response): void
5858 $ this ->requestResponses = $ this ->populateResultPutRecordBatchResponseEntryList ($ data ['RequestResponses ' ]);
5959 }
6060
61+ private function populateResultPutRecordBatchResponseEntry (array $ json ): PutRecordBatchResponseEntry
62+ {
63+ return new PutRecordBatchResponseEntry ([
64+ 'RecordId ' => isset ($ json ['RecordId ' ]) ? (string ) $ json ['RecordId ' ] : null ,
65+ 'ErrorCode ' => isset ($ json ['ErrorCode ' ]) ? (string ) $ json ['ErrorCode ' ] : null ,
66+ 'ErrorMessage ' => isset ($ json ['ErrorMessage ' ]) ? (string ) $ json ['ErrorMessage ' ] : null ,
67+ ]);
68+ }
69+
6170 /**
6271 * @return PutRecordBatchResponseEntry[]
6372 */
6473 private function populateResultPutRecordBatchResponseEntryList (array $ json ): array
6574 {
6675 $ items = [];
6776 foreach ($ json as $ item ) {
68- $ items [] = new PutRecordBatchResponseEntry ([
69- 'RecordId ' => isset ($ item ['RecordId ' ]) ? (string ) $ item ['RecordId ' ] : null ,
70- 'ErrorCode ' => isset ($ item ['ErrorCode ' ]) ? (string ) $ item ['ErrorCode ' ] : null ,
71- 'ErrorMessage ' => isset ($ item ['ErrorMessage ' ]) ? (string ) $ item ['ErrorMessage ' ] : null ,
72- ]);
77+ $ items [] = $ this ->populateResultPutRecordBatchResponseEntry ($ item );
7378 }
7479
7580 return $ items ;
You can’t perform that action at this time.
0 commit comments