Documentation

Singleton

The singleton trait

Table of Contents

$instance  : object
The only instance of using class
getinstance()  : object
Checks, instantiates and returns the only instance of the using class.

Properties

$instance

The only instance of using class

protected static object $instance = NULL

Methods

getinstance()

Checks, instantiates and returns the only instance of the using class.

public static getinstance() : object
Tags
template

object

psalm-return

object

psalm-suppress

MismatchingDocblockReturnType

psalm-suppress

ReservedWord

Return values
object

Search results