ScriptFUSION\Porter\Porter::createMappedRecords PHP Method

createMappedRecords() private method

private createMappedRecords ( Iterator $records, RecordCollection $previous, ScriptFUSION\Mapper\Mapping $mapping )
$records Iterator
$previous ScriptFUSION\Porter\Collection\RecordCollection
$mapping ScriptFUSION\Mapper\Mapping
    private function createMappedRecords(\Iterator $records, RecordCollection $previous, Mapping $mapping)
    {
        if ($previous instanceof \Countable) {
            return new CountableMappedRecords($records, count($previous), $previous, $mapping);
        }
        return new MappedRecords($records, $previous, $mapping);
    }