You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
PhpSingleton/src/Singleton/ISingleton.php

19 lines
364 B
PHP

<?php
namespace jrosset\Singleton;
/**
* Interface for class implementing a singleton
*
* @see TSingleton for common implementation
*/
interface ISingleton {
/**
* Get the instance
*
* If the instance is not already created then create it
*
* @return static The instance
*/
public static function getInstance (): self;
}