Directly import PushInterface

This commit is contained in:
Kijin Sung 2020-12-11 22:09:10 +09:00
parent 166e867f77
commit 90d8b7fc33
2 changed files with 6 additions and 4 deletions

View file

@ -2,10 +2,12 @@
namespace Rhymix\Framework\Drivers\Push; namespace Rhymix\Framework\Drivers\Push;
use Rhymix\Framework\Drivers\PushInterface;
/** /**
* The base class for other Push drivers. * 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. * 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. * Create a new instance of the current Push driver, using the given settings.
* *
* @param array $config * @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); return new static($config);
} }

View file

@ -13,7 +13,7 @@ interface PushInterface
* @param array $config * @param array $config
* @return void * @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. * Get the human-readable name of this Push driver.