itxq/singleton_pattern

v1.0.0 2019-05-03 08:42 UTC

This package is auto-updated.

Last update: 2024-06-29 04:46:05 UTC


README

单例trait

namespace test;

use itxq\kelove\traits\SingletonPattern;

class Test
{
    use SingletonPattern;
    
    public function index()
    {
        return 123;
    }
    
}