Piwik\

Singleton

The singleton base class restricts the instantiation of derived classes to one object only.

All plugin APIs are singletons and thus extend this class.

Methods

The class defines the following methods:

  • getInstance() — Returns the singleton instance for the derived class.

getInstance()

Returns the singleton instance for the derived class. If the singleton instance has not been created, this method will create it.

Signature