$id ] )->get_value(); } ), func_get_args() ); } /** * @param callable|curried $saveBatch * @param int|curried $batchId * @param int|curried $stringId * @param string|curried $sourceLang * @return void|callable * * @phpstan-param ?callable $saveBatch * @phpstan-param ?int $batchId * @phpstan-param ?int $stringId * @phpstan-param ?string $sourceLang * * @phpstan-return ( $sourceLang is not null ? void : callable ) * */ public static function batchStringsStorage( callable $saveBatch = null, $batchId = null, $stringId = null, $sourceLang = null ) { return call_user_func_array( curryN( 4, function ( callable $saveBatch, $batchId, $stringId, $sourceLang ) { self::setBatchLanguage( $batchId, $sourceLang ); $saveBatch( $batchId, $stringId ); } ), func_get_args() ); } }