Файл: system/vendor/illuminate/support/Facades/Queue.php
Строк: 85
<?php
namespace IlluminateSupportFacades;
use IlluminateSupportTestingFakesQueueFake;
/**
* @method static int size(string $queue = null)
* @method static mixed push(string|object $job, mixed $data = '', $queue = null)
* @method static mixed pushOn(string $queue, string|object $job, mixed $data = '')
* @method static mixed pushRaw(string $payload, string $queue = null, array $options = [])
* @method static mixed later(DateTimeInterface|DateInterval|int $delay, string|object $job, mixed $data = '', string $queue = null)
* @method static mixed laterOn(string $queue, DateTimeInterface|DateInterval|int $delay, string|object $job, mixed $data = '')
* @method static mixed bulk(array $jobs, mixed $data = '', string $queue = null)
* @method static IlluminateContractsQueueJob|null pop(string $queue = null)
* @method static string getConnectionName()
* @method static IlluminateContractsQueueQueue setConnectionName(string $name)
* @method static void assertNothingPushed()
* @method static void assertNotPushed(string $job, callable $callback = null)
* @method static void assertPushed(string $job, callable|int $callback = null)
* @method static void assertPushedOn(string $queue, string $job, callable|int $callback = null)
* @method static void assertPushedWithChain(string $job, array $expectedChain = [], callable $callback = null)
*
* @see IlluminateQueueQueueManager
* @see IlluminateQueueQueue
*/
class Queue extends Facade
{
/**
* Replace the bound instance with a fake.
*
* @return IlluminateSupportTestingFakesQueueFake
*/
public static function fake()
{
static::swap($fake = new QueueFake(static::getFacadeApplication()));
return $fake;
}
/**
* Get the registered name of the component.
*
* @return string
*/
protected static function getFacadeAccessor()
{
return 'queue';
}
}