Skip to content

Commit

Permalink
Added a class to manage rejections with a given reason
Browse files Browse the repository at this point in the history
  • Loading branch information
sebprt committed Oct 20, 2023
1 parent f15058e commit 7e769c0
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/RejectionWithReasonInterface.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php

declare(strict_types=1);

namespace Kiboko\Contract\Pipeline;

interface RejectionWithReasonInterface extends RejectionInterface
{
/** @param array|object $rejection */
public function rejectWithReason(object|array $rejection, string $reason, null|\Throwable $exception = null): void;

Check failure on line 10 in src/RejectionWithReasonInterface.php

View workflow job for this annotation

GitHub Actions / phpstan

Method Kiboko\Contract\Pipeline\RejectionWithReasonInterface::rejectWithReason() has parameter $rejection with no value type specified in iterable type array.

Check failure on line 10 in src/RejectionWithReasonInterface.php

View workflow job for this annotation

GitHub Actions / phpstan

Method Kiboko\Contract\Pipeline\RejectionWithReasonInterface::rejectWithReason() has parameter $rejection with no value type specified in iterable type array.

Check failure on line 10 in src/RejectionWithReasonInterface.php

View workflow job for this annotation

GitHub Actions / phpstan

Method Kiboko\Contract\Pipeline\RejectionWithReasonInterface::rejectWithReason() has parameter $rejection with no value type specified in iterable type array.
}

0 comments on commit 7e769c0

Please sign in to comment.