Skip to content

Commit

Permalink
Update info() return types
Browse files Browse the repository at this point in the history
  • Loading branch information
ro0NL authored Nov 23, 2023
1 parent 0711760 commit 31363bd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Stream/Stream.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use Basis\Nats\Client;
use Basis\Nats\Consumer\Consumer;
use Basis\Nats\Consumer\Configuration as ConsumerConfiguration;
use Basis\Nats\Message\Payload;

class Stream
{
Expand Down Expand Up @@ -88,6 +89,9 @@ public function getName(): string
return $this->configuration->getName();
}

/**
* @return Payload
*/
public function info()
{
return $this->client->api("STREAM.INFO." . $this->getName());
Expand Down

0 comments on commit 31363bd

Please sign in to comment.