Skip to content

Commit

Permalink
Merge pull request #9 from php-etl/feature/rejection-reason
Browse files Browse the repository at this point in the history
Added a class to manage rejections with a given reason
  • Loading branch information
gplanchat authored Oct 27, 2023
2 parents f15058e + 37ac190 commit f56f2ac
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/RejectionWithReasonInterface.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php

declare(strict_types=1);

namespace Kiboko\Contract\Pipeline;

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

Check failure on line 9 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 9 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 9 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 9 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 9 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 9 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 f56f2ac

Please sign in to comment.