Crunz\Singleton::getInstance PHP Method

getInstance() public static method

Return the instance of the class
public static getInstance ( ) : mixed
return mixed
    public static function getInstance()
    {
        if (is_null(static::$instance)) {
            return new static();
        }
        return static::$instance;
    }