diff --git a/src/EmptyResultBucket.php b/src/EmptyResultBucket.php index b0ef514..d16ec68 100644 --- a/src/EmptyResultBucket.php +++ b/src/EmptyResultBucket.php @@ -9,28 +9,8 @@ /** * @template Type of non-empty-array|object * - * @implements Contract\AcceptanceResultBucketInterface - * @implements Contract\RejectionResultBucketInterface + * @implements Contract\ResultBucketInterface */ -final class EmptyResultBucket implements Contract\AcceptanceResultBucketInterface, Contract\RejectionResultBucketInterface +final class EmptyResultBucket implements Contract\ResultBucketInterface { - public function reasons(): ?array - { - return null; - } - - public function exceptions(): ?array - { - return null; - } - - public function walkAcceptance(): iterable - { - return new \EmptyIterator(); - } - - public function walkRejection(): iterable - { - return new \EmptyIterator(); - } }