File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed
Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change 22
33namespace Kiboko \Contract \Pipeline ;
44
5+ use Kiboko \Contract \Bucket \ResultBucketInterface ;
6+
57final class NullState implements StateInterface
68{
79 public function initialize (int $ start = 0 ): void
@@ -13,4 +15,14 @@ public function increment(int $step = 1): void
1315 {
1416 // NOOP
1517 }
18+
19+ public function reject (int $ step = 1 ): void
20+ {
21+ // NOOP
22+ }
23+
24+ public function incrementFromBucket (ResultBucketInterface $ bucket ): void
25+ {
26+ // NOOP
27+ }
1628}
Original file line number Diff line number Diff line change 22
33namespace Kiboko \Contract \Pipeline ;
44
5+ use Kiboko \Contract \Bucket \ResultBucketInterface ;
6+
57interface StateInterface
68{
79 public function initialize (int $ start = 0 ): void ;
810 public function increment (int $ step = 1 ): void ;
11+ public function reject (int $ step = 1 ): void ;
12+ public function incrementFromBucket (ResultBucketInterface $ bucket ): void ;
913}
You can’t perform that action at this time.
0 commit comments