ScriptFUSION\Porter\Porter::createPorterRecords PHP Method

createPorterRecords() private method

private createPorterRecords ( RecordCollection $records, ImportSpecification $specification )
$records ScriptFUSION\Porter\Collection\RecordCollection
$specification ScriptFUSION\Porter\Specification\ImportSpecification
    private function createPorterRecords(RecordCollection $records, ImportSpecification $specification)
    {
        if ($records instanceof \Countable) {
            return new CountablePorterRecords($records, count($records), $specification);
        }
        return new PorterRecords($records, $specification);
    }