Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from damianopetrungaro/dp/refactoring
Project refactoring
- Loading branch information
Showing
17 changed files
with
158 additions
and
317 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
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
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,18 @@ | ||
<?php | ||
|
||
namespace AlexManno\Remix\Pipelines\Interfaces; | ||
|
||
interface PayloadInterface | ||
{ | ||
/** | ||
* @return mixed | ||
*/ | ||
public function getData(); | ||
|
||
/** | ||
* @param $data | ||
* | ||
* @return void | ||
*/ | ||
public function setData($data): void; | ||
} |
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 Remix\Pipelines\Interfaces; | ||
namespace AlexManno\Remix\Pipelines\Interfaces; | ||
|
||
interface PipelineInterface | ||
{ | ||
public function getStages(): \SplQueue; | ||
use SplQueue; | ||
|
||
public function pipe(StageInterface $stage): self; | ||
interface PipelineInterface extends StageInterface | ||
{ | ||
public function getStages(): SplQueue; | ||
|
||
public function run(StateInterface $state): StateInterface; | ||
public function pipe(StageInterface $stage): PipelineInterface; | ||
} |
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,8 +1,8 @@ | ||
<?php | ||
|
||
namespace Remix\Pipelines\Interfaces; | ||
namespace AlexManno\Remix\Pipelines\Interfaces; | ||
|
||
interface StageInterface | ||
{ | ||
public function __invoke($state); | ||
public function __invoke(PayloadInterface $payload): PayloadInterface; | ||
} |
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
Oops, something went wrong.