mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 09:41:40 +09:00
Directly import PushInterface
This commit is contained in:
parent
166e867f77
commit
90d8b7fc33
2 changed files with 6 additions and 4 deletions
|
|
@ -2,10 +2,12 @@
|
|||
|
||||
namespace Rhymix\Framework\Drivers\Push;
|
||||
|
||||
use Rhymix\Framework\Drivers\PushInterface;
|
||||
|
||||
/**
|
||||
* The base class for other Push drivers.
|
||||
*/
|
||||
abstract class Base implements \Rhymix\Framework\Drivers\PushInterface
|
||||
abstract class Base implements PushInterface
|
||||
{
|
||||
/**
|
||||
* The configuration is stored here.
|
||||
|
|
@ -30,9 +32,9 @@ abstract class Base implements \Rhymix\Framework\Drivers\PushInterface
|
|||
* Create a new instance of the current Push driver, using the given settings.
|
||||
*
|
||||
* @param array $config
|
||||
* @return Base
|
||||
* @return PushInterface
|
||||
*/
|
||||
public static function getInstance(array $config): Base
|
||||
public static function getInstance(array $config): PushInterface
|
||||
{
|
||||
return new static($config);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ interface PushInterface
|
|||
* @param array $config
|
||||
* @return void
|
||||
*/
|
||||
public static function getInstance(array $config): object;
|
||||
public static function getInstance(array $config): PushInterface;
|
||||
|
||||
/**
|
||||
* Get the human-readable name of this Push driver.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue