ScriptFUSION\Porter\Porter::createMappedRecords PHP Méthode

createMappedRecords() private méthode

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);
    }