parent
70a0f14c26
commit
e666d93f28
@ -0,0 +1,17 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace jrosset\Singleton;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Interface for class that must implements a singleton
|
||||||
|
*/
|
||||||
|
interface ISingleton {
|
||||||
|
/**
|
||||||
|
* Get the instance
|
||||||
|
*
|
||||||
|
* If the instance is not already created then create it
|
||||||
|
*
|
||||||
|
* @return static The instance
|
||||||
|
*/
|
||||||
|
public static function getInstance (): self;
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue