diff --git a/composer.json b/composer.json index 1f04273..37b91e1 100644 --- a/composer.json +++ b/composer.json @@ -34,7 +34,7 @@ }, "extra": { "branch-alias": { - "dev-main": "0.4.x-dev" + "dev-main": "0.5.x-dev" } } } diff --git a/src/RejectedItemException.php b/src/RejectedItemException.php index cbd61c1..bbc3f47 100644 --- a/src/RejectedItemException.php +++ b/src/RejectedItemException.php @@ -4,4 +4,6 @@ namespace Kiboko\Contract\Pipeline; -final class RejectedItemException extends \RuntimeException {} +final class RejectedItemException extends \RuntimeException +{ +} diff --git a/src/RejectionInterface.php b/src/RejectionInterface.php index 3dd1dda..63f18ec 100644 --- a/src/RejectionInterface.php +++ b/src/RejectionInterface.php @@ -10,6 +10,7 @@ public function initialize(): void; /** @param non-empty-array|object $rejection */ public function reject(StepCodeInterface $step, array|object $rejection, \Throwable $exception = null): void; + public function rejectWithReason(StepCodeInterface $step, object|array $rejection, string $reason, null|\Throwable $exception = null): void; public function teardown(): void; diff --git a/src/RunnableInterface.php b/src/RunnableInterface.php index 835e2e1..07695fe 100644 --- a/src/RunnableInterface.php +++ b/src/RunnableInterface.php @@ -7,4 +7,6 @@ use Kiboko\Contract\Satellite\RunnableInterface as SatelliteRunableInterface; /** @deprecated Use \Kiboko\Contract\Job\RunnableInterface instead */ -interface RunnableInterface extends SatelliteRunableInterface {} +interface RunnableInterface extends SatelliteRunableInterface +{ +} diff --git a/src/StepRejectionInterface.php b/src/StepRejectionInterface.php index 1158302..a18b8df 100644 --- a/src/StepRejectionInterface.php +++ b/src/StepRejectionInterface.php @@ -10,6 +10,7 @@ public function initialize(): void; /** @param non-empty-array|object $rejection */ public function reject(array|object $rejection, \Throwable $exception = null): void; + public function rejectWithReason(object|array $rejection, string $reason, null|\Throwable $exception = null): void; public function teardown(): void;