ScriptFUSION\Porter\Collection\MappedRecords::__construct PHP Method

__construct() public method

public __construct ( Iterator $records, RecordCollection $previousCollection, ScriptFUSION\Mapper\Mapping $mapping )
$records Iterator
$previousCollection RecordCollection
$mapping ScriptFUSION\Mapper\Mapping
    public function __construct(\Iterator $records, RecordCollection $previousCollection, Mapping $mapping)
    {
        parent::__construct($records, $previousCollection);
        $this->mapping = $mapping;
    }

Usage Example

 /**
  * @param \Iterator $records
  * @param int $count
  * @param RecordCollection $previousCollection
  */
 public function __construct(\Iterator $records, $count, RecordCollection $previousCollection, Mapping $mapping)
 {
     parent::__construct($records, $previousCollection, $mapping);
     $this->setCount($count);
 }