Skip to content

Commit

Permalink
Stage implementos to abstract (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
cesargb authored Oct 1, 2022
1 parent 59e267c commit 99181c1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Stage.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Descom\Pipeline;

interface Stage
abstract class Stage
{
/**
* Process the payload.
Expand All @@ -11,5 +11,5 @@ interface Stage
*
* @return mixed
*/
public function __invoke($payload);
abstract public function __invoke($payload);
}
2 changes: 1 addition & 1 deletion tests/Support/AddStage.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use Descom\Pipeline\Stage;

class AddStage implements Stage
class AddStage extends Stage
{
public function __invoke($payload)
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Support/DoubleStage.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use Descom\Pipeline\Stage;

class DoubleStage implements Stage
class DoubleStage extends Stage
{
public function __invoke($payload)
{
Expand Down

0 comments on commit 99181c1

Please sign in to comment.