mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-09 12:02:24 +09:00
Fix return type of QueueInterface::getInstance()
This commit is contained in:
parent
4b0b485a13
commit
29837bdf4c
4 changed files with 8 additions and 8 deletions
|
|
@ -11,9 +11,9 @@ interface QueueInterface
|
||||||
* Create a new instance of the current Queue driver, using the given settings.
|
* Create a new instance of the current Queue driver, using the given settings.
|
||||||
*
|
*
|
||||||
* @param array $config
|
* @param array $config
|
||||||
* @return void
|
* @return QueueInterface
|
||||||
*/
|
*/
|
||||||
public static function getInstance(array $config): self;
|
public static function getInstance(array $config): QueueInterface;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the human-readable name of this Queue driver.
|
* Get the human-readable name of this Queue driver.
|
||||||
|
|
|
||||||
|
|
@ -14,9 +14,9 @@ class DB implements QueueInterface
|
||||||
* Create a new instance of the current Queue driver, using the given settings.
|
* Create a new instance of the current Queue driver, using the given settings.
|
||||||
*
|
*
|
||||||
* @param array $config
|
* @param array $config
|
||||||
* @return void
|
* @return QueueInterface
|
||||||
*/
|
*/
|
||||||
public static function getInstance(array $config): self
|
public static function getInstance(array $config): QueueInterface
|
||||||
{
|
{
|
||||||
return new self($config);
|
return new self($config);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -18,9 +18,9 @@ class Dummy implements QueueInterface
|
||||||
* Create a new instance of the current Queue driver, using the given settings.
|
* Create a new instance of the current Queue driver, using the given settings.
|
||||||
*
|
*
|
||||||
* @param array $config
|
* @param array $config
|
||||||
* @return void
|
* @return QueueInterface
|
||||||
*/
|
*/
|
||||||
public static function getInstance(array $config): self
|
public static function getInstance(array $config): QueueInterface
|
||||||
{
|
{
|
||||||
return new self($config);
|
return new self($config);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -19,9 +19,9 @@ class Redis implements QueueInterface
|
||||||
* Create a new instance of the current Queue driver, using the given settings.
|
* Create a new instance of the current Queue driver, using the given settings.
|
||||||
*
|
*
|
||||||
* @param array $config
|
* @param array $config
|
||||||
* @return void
|
* @return QueueInterface
|
||||||
*/
|
*/
|
||||||
public static function getInstance(array $config): self
|
public static function getInstance(array $config): QueueInterface
|
||||||
{
|
{
|
||||||
return new self($config);
|
return new self($config);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue