Remove Reader and ConsumerInterface

This commit is contained in:
2021-03-10 21:06:55 +03:00
parent 9f004417fa
commit 2f638b9c75
6 changed files with 5 additions and 313 deletions

View File

@ -17,11 +17,11 @@ final class Message
public string $body,
public int $timestamp,
public int $attempts,
private ConsumerInterface $consumer,
private Consumer $consumer,
) {
}
public static function compose(Frame\Message $message, ConsumerInterface $consumer): self
public static function compose(Frame\Message $message, Consumer $consumer): self
{
return new self(
$message->id,