Skip to content

Commit

Permalink
Add Psalm type
Browse files Browse the repository at this point in the history
  • Loading branch information
viktorprogger committed Mar 5, 2023
1 parent c093ca9 commit f5e2d88
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Adapter/AdapterInterface.php
Expand Up @@ -12,6 +12,8 @@ interface AdapterInterface
{
/**
* Returns the first message from the queue if it exists (null otherwise).
*
* @param callable(MessageInterface): bool $callback
*/
public function runExisting(callable $callback): void;

Expand All @@ -36,7 +38,7 @@ public function push(MessageInterface $message): void;
/**
* Listen to the queue and pass messages to the given handler as they come.
*
* @param callable $handler The handler which will execute jobs.
* @param callable(MessageInterface): bool $handler The handler which will execute jobs.
*/
public function subscribe(callable $handler): void;

Expand Down

0 comments on commit f5e2d88

Please sign in to comment.