Skip to content

Commit

Permalink
stubs phpdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
vjik committed Nov 7, 2024
1 parent 8f593d9 commit 394c50f
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Adapter/StubAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
use Yiisoft\Queue\Enum\JobStatus;
use Yiisoft\Queue\Message\MessageInterface;

/**
* Stub adapter that does nothing. Job status is always "done".
*/
final class StubAdapter implements AdapterInterface
{
public function runExisting(callable $handlerCallback): void
Expand Down
3 changes: 3 additions & 0 deletions src/Cli/StubLoop.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@

namespace Yiisoft\Queue\Cli;

/**
* Stub loop.
*/
final class StubLoop implements LoopInterface
{
public function __construct(
Expand Down
3 changes: 3 additions & 0 deletions src/StubQueue.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
use Yiisoft\Queue\Message\MessageInterface;
use Yiisoft\Queue\Middleware\Push\MiddlewarePushInterface;

/**
* Stub queue that does nothing. Job status is always "done".
*/
final class StubQueue implements QueueInterface
{
public function __construct(
Expand Down
3 changes: 3 additions & 0 deletions src/Worker/StubWorker.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
use Yiisoft\Queue\Message\MessageInterface;
use Yiisoft\Queue\QueueInterface;

/**
* Stub worker that does nothing.
*/
final class StubWorker implements WorkerInterface
{
public function process(MessageInterface $message, QueueInterface $queue): MessageInterface
Expand Down

0 comments on commit 394c50f

Please sign in to comment.