Skip to content
Permalink
master
Go to file
 
 
Cannot retrieve contributors at this time
33 lines (25 sloc) 1.01 KB

Singleton

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();
You can’t perform that action at this time.