PHP Трейт Webiny\Component\StdLib\SingletonTrait

Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$wfInstance

Открытые методы

Метод Описание
deleteInstance ( ) Deletes the current singleton instance.
getInstance ( ) Return the current instance.

Защищенные методы

Метод Описание
init ( ) Override this if you wish to do some stuff once the singleton instance has been created.

Приватные методы

Метод Описание
__clone ( ) Declare it as private.
__construct ( ) The constructor is set to private to prevent creating new instances.
__wakeup ( ) Declare it as private.

Описание методов

deleteInstance() закрытый публичный статический Метод

Deletes the current singleton instance.
final public static deleteInstance ( )

getInstance() закрытый публичный статический Метод

If instance doesn't exist, a new instance will be created.
final public static getInstance ( )

init() защищенный Метод

Override this if you wish to do some stuff once the singleton instance has been created.
protected init ( )

Описание свойств

$wfInstance защищенное статическое свойство

protected static $wfInstance