Skip to content

Commit 0224d7b

Browse files
committed
Added interface to manage actions
1 parent 499da7f commit 0224d7b

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

src/ActionInterface.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?php
2+
3+
namespace Kiboko\Contract\Pipeline;
4+
5+
interface ActionInterface
6+
{
7+
public function execute(): iterable;
8+
}

src/ExecutingActionInterface.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?php
2+
3+
namespace Kiboko\Contract\Pipeline;
4+
5+
interface ExecutingActionInterface
6+
{
7+
public function execute(
8+
ActionInterface $action,
9+
RejectionInterface $rejection,
10+
StateInterface $state
11+
): ExecutingActionInterface;
12+
}

0 commit comments

Comments
 (0)