-
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added missing objects to MappedRecords and FilteredRecords.
- Loading branch information
Showing
5 changed files
with
55 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,25 @@ | ||
<?php | ||
namespace ScriptFUSION\Porter\Collection; | ||
|
||
use ScriptFUSION\Mapper\Mapping; | ||
|
||
class MappedRecords extends RecordCollection | ||
{ | ||
// Intentionally empty. | ||
/** @var Mapping */ | ||
private $mapping; | ||
|
||
public function __construct(\Iterator $records, RecordCollection $previousCollection, Mapping $mapping) | ||
{ | ||
parent::__construct($records, $previousCollection); | ||
|
||
$this->mapping = $mapping; | ||
} | ||
|
||
/** | ||
* @return Mapping | ||
*/ | ||
public function getMapping() | ||
{ | ||
return $this->mapping; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters