Skip to content

Commit 2b4cc50

Browse files
committed
Integrated state and rejection handling interfaces
Upgraded version number to v0.2
1 parent a2c8307 commit 2b4cc50

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

src/NullState.php

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,14 @@
22

33
namespace Kiboko\Contract\Pipeline;
44

5-
use Kiboko\Contract\Bucket\ResultBucketInterface;
6-
75
final class NullState implements StateInterface
86
{
97
public function initialize(int $start = 0): void
108
{
119
// NOOP
1210
}
1311

14-
public function increment(int $step = 1): void
12+
public function accept(int $step = 1): void
1513
{
1614
// NOOP
1715
}
@@ -20,9 +18,4 @@ public function reject(int $step = 1): void
2018
{
2119
// NOOP
2220
}
23-
24-
public function incrementFromBucket(ResultBucketInterface $bucket): void
25-
{
26-
// NOOP
27-
}
2821
}

src/StateInterface.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,9 @@
22

33
namespace Kiboko\Contract\Pipeline;
44

5-
use Kiboko\Contract\Bucket\ResultBucketInterface;
6-
75
interface StateInterface
86
{
97
public function initialize(int $start = 0): void;
10-
public function increment(int $step = 1): void;
8+
public function accept(int $step = 1): void;
119
public function reject(int $step = 1): void;
12-
public function incrementFromBucket(ResultBucketInterface $bucket): void;
1310
}

0 commit comments

Comments
 (0)