Add isFinished to Envelope

This commit is contained in:
2021-01-20 17:53:24 +03:00
parent 6a7fac12cb
commit 46f0e8bea5

View File

@ -23,6 +23,11 @@ final class Envelope
$this->connection = $connection; $this->connection = $connection;
} }
public function isFinished(): bool
{
return $this->finished;
}
public function finish(): void public function finish(): void
{ {
if ($this->finished) { if ($this->finished) {