src/RecordWriterStrategy/RecordWriterStrategyFactory.php
public function getStrategy($basePath, $settings = [])
    {
        if (isset($settings['combineRecords']) && $settings['combineRecords']) {
            $combineTag = $settings['combineRecordsTag'] ?? null;
            return new CombinedRecordWriterStrategy($basePath, $combineTag);
        }
        return new IndividualRecordWriterStrategy($basePath);
    }
public function getStrategy($basePath, $settings = [])
    {
        if (isset($settings['combineRecords']) && $settings['combineRecords']) {
            $combineTag = $settings['combineRecordsTag'] ?? null;
            return new CombinedRecordWriterStrategy($basePath, $combineTag);
        }
        return new IndividualRecordWriterStrategy($basePath);
    }
public function getStrategy ( $ basePath , $ settings = [ ] ) { if ( isset ( $ settings [ 'combineRecords' ] ) && $ settings [ 'combineRecords' ] ) { $ combineTag = $ settings [ 'combineRecordsTag' ] ?? null ; return new CombinedRecordWriterStrategy ( $ basePath , $ combineTag ) ; } return new IndividualRecordWriterStrategy ( $ basePath ) ; }
Build writer strategy object.

@param string $basePath Base path for harvest
@param array  $settings Configuration settings

@return RecordWriterStrategyInterface
Build writer strategy object .