Final Class Yiisoft\Queue\Stubs\StubAdapter
| Inheritance | Yiisoft\Queue\Stubs\StubAdapter |
|---|---|
| Implements | Yiisoft\Queue\Adapter\AdapterInterface |
Stub adapter that does nothing. Job status is always "done".
Public Methods
Method Details
| public __construct( string|\BackedEnum $channel = QueueProviderInterface::DEFAULT_CHANNEL ): mixed | ||
| $channel | string|\BackedEnum | |
public function __construct(
string|BackedEnum $channel = QueueProviderInterface::DEFAULT_CHANNEL
) {
$this->channel = ChannelNormalizer::normalize($channel);
}
| public push( Yiisoft\Queue\Message\MessageInterface $message ): Yiisoft\Queue\Message\MessageInterface | ||
| $message | Yiisoft\Queue\Message\MessageInterface | |
public function push(MessageInterface $message): MessageInterface
{
return $message;
}
| public runExisting( callable $handlerCallback ): void | ||
| $handlerCallback | callable | |
public function runExisting(callable $handlerCallback): void
{
}
| public status( integer|string $id ): \Yiisoft\Queue\JobStatus | ||
| $id | integer|string | |
public function status(int|string $id): JobStatus
{
return JobStatus::DONE;
}
| public subscribe( callable $handlerCallback ): void | ||
| $handlerCallback | callable | |
public function subscribe(callable $handlerCallback): void
{
}
| public withChannel( string|\BackedEnum $channel ): Yiisoft\Queue\Adapter\AdapterInterface | ||
| $channel | string|\BackedEnum | |
public function withChannel(string|BackedEnum $channel): AdapterInterface
{
$new = clone $this;
$new->channel = ChannelNormalizer::normalize($channel);
return $new;
}
Signup or Login in order to comment.