$orderSn, 'reason' => $reason, ], $otherData); } public static function buildOrderIdError($orderId, $reason, $otherData = []) { return array_merge([ 'orderId' => $orderId, 'reason' => $reason, ], $otherData); } public static function buildRowError($row, $reason, $otherData = []) { return array_merge([ 'row' => $row, 'reason' => $reason, ], $otherData); } }