Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
130 additions
and
336 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 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 |
---|---|---|
@@ -1,19 +1,17 @@ | ||
<?php | ||
namespace ScriptFUSION\Porter\Provider; | ||
|
||
use ScriptFUSION\Porter\Provider\Resource\ProviderResource; | ||
use ScriptFUSION\Porter\Connector\Connector; | ||
|
||
/** | ||
* Provides a method for fetching data from a resource. | ||
* Provides a method for accessing a connector. | ||
*/ | ||
interface Provider | ||
{ | ||
/** | ||
* Fetches data from the specified resource. | ||
* Gets a connector for accessing resource data. | ||
* | ||
* @param ProviderResource $resource Resource. | ||
* | ||
* @return \Iterator Enumerable data series. | ||
* @return Connector | ||
*/ | ||
public function fetch(ProviderResource $resource); | ||
public function getConnector(); | ||
} |
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,17 @@ | ||
<?php | ||
namespace ScriptFUSION\Porter\Provider; | ||
|
||
use ScriptFUSION\Porter\Options\EncapsulatedOptions; | ||
|
||
/** | ||
* Provides a method for accessing provider options. | ||
*/ | ||
interface ProviderOptions | ||
{ | ||
/** | ||
* Gets the provider options. | ||
* | ||
* @return EncapsulatedOptions | ||
*/ | ||
public function getOptions(); | ||
} |
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.