mibadger/singleton

This package is abandoned and no longer maintained. No replacement package was suggested.

The Singleton Component

v3.0.0 2021-08-12 09:48 UTC

This package is auto-updated.

Last update: 2022-11-19 17:10:04 UTC


README

Build Status Code Coverage Scrutinizer Code Quality SensioLabsInsight

The Singleton Component.

Example

<?php

use miBadger\Singleton\SingletonTrait;

/**
 * The example class.
 */
class Example
{
	use SingletonTrait;
}
<?php

/**
 * Returns the only instance of the Singleton class.
 */
$singleton = Example::getInstance();