-
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Renamed ProviderDataFetcher -> ProviderDataSource.
- Loading branch information
Showing
19 changed files
with
94 additions
and
92 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
<?php | ||
namespace ScriptFUSION\Porter\Collection; | ||
|
||
use ScriptFUSION\Porter\Provider\ProviderDataFetcher; | ||
use ScriptFUSION\Porter\Provider\DataSource\ProviderDataSource; | ||
|
||
class ProviderRecords extends RecordCollection | ||
{ | ||
private $dataFetcher; | ||
private $dataSource; | ||
|
||
public function __construct(\Iterator $providerRecords, ProviderDataFetcher $dataFetcher) | ||
public function __construct(\Iterator $providerRecords, ProviderDataSource $dataSource) | ||
{ | ||
parent::__construct($providerRecords); | ||
|
||
$this->dataFetcher = $dataFetcher; | ||
$this->dataSource = $dataSource; | ||
} | ||
|
||
/** | ||
* @return ProviderDataFetcher | ||
* @return ProviderDataSource | ||
*/ | ||
public function getDataFetcher() | ||
public function getDataSource() | ||
{ | ||
return $this->dataFetcher; | ||
return $this->dataSource; | ||
} | ||
} |
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
4 changes: 2 additions & 2 deletions
4
src/Porter/Provider/NullDataFetcher.php → ...er/Provider/DataSource/NullDataSource.php
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
8 changes: 4 additions & 4 deletions
8
src/Porter/Provider/ProviderDataFetcher.php → ...rovider/DataSource/ProviderDataSource.php
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
5 changes: 3 additions & 2 deletions
5
src/Porter/Provider/StaticDataFetcher.php → .../Provider/DataSource/StaticDataSource.php
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?php | ||
namespace ScriptFUSION\Porter\Provider; | ||
|
||
/** | ||
* The exception that is thrown when a foreign data source is received. | ||
*/ | ||
class ForeignDataSourceException extends \RuntimeException | ||
{ | ||
// Intentionally empty. | ||
} |
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,12 +1,12 @@ | ||
<?php | ||
namespace ScriptFUSION\Porter\Specification; | ||
|
||
use ScriptFUSION\Porter\Provider\StaticDataFetcher; | ||
use ScriptFUSION\Porter\Provider\DataSource\StaticDataSource; | ||
|
||
class StaticDataImportSpecification extends ImportSpecification | ||
{ | ||
public function __construct(\Iterator $data) | ||
{ | ||
parent::__construct(new StaticDataFetcher($data)); | ||
parent::__construct(new StaticDataSource($data)); | ||
} | ||
} |
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
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
Oops, something went wrong.