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();