diff --git a/src/Stage.php b/src/Stage.php index adb4783..ab95ea3 100644 --- a/src/Stage.php +++ b/src/Stage.php @@ -2,7 +2,7 @@ namespace Descom\Pipeline; -interface Stage +abstract class Stage { /** * Process the payload. @@ -11,5 +11,5 @@ interface Stage * * @return mixed */ - public function __invoke($payload); + abstract public function __invoke($payload); } diff --git a/tests/Support/AddStage.php b/tests/Support/AddStage.php index a5260ed..61b2a11 100644 --- a/tests/Support/AddStage.php +++ b/tests/Support/AddStage.php @@ -4,7 +4,7 @@ use Descom\Pipeline\Stage; -class AddStage implements Stage +class AddStage extends Stage { public function __invoke($payload) { diff --git a/tests/Support/DoubleStage.php b/tests/Support/DoubleStage.php index 2fa2b2b..5ac19e4 100644 --- a/tests/Support/DoubleStage.php +++ b/tests/Support/DoubleStage.php @@ -4,7 +4,7 @@ use Descom\Pipeline\Stage; -class DoubleStage implements Stage +class DoubleStage extends Stage { public function __invoke($payload) {