MvcLite\Traits\Singleton
Singleton Trait.
Allows getting a single instance of self.
- Author: Cory Collier <corycollier@corycollier.com>
Synopsis
trait Singleton
{
- // members
- protected static Singleton $instance;
- // methods
- private void __construct()
- public static Singleton getInstance()
Hierarchy
Used by
Coverage
Methods | 0% | 0 / 2 |
Lines | 0% | / |
Members
protected
- $instance
—
MvcLite\Traits\Singleton
Static instance variable
Methods
public
- getInstance() — Getter for the instance variable.
History
-
2015-11-29T16:46:01-05:00 (commit #846ee53)
Author: Cory Collier (ccollier@redhat.com) / Commiter: Cory Collier (ccollier@redhat.com)
Adding traits, implementing them on Cache, Database, Dispatcher, Error, and Request classes. Adding a TestCase class, to simplify unit test writing. Updating unit tests