# templately/1.3.1/core/class-base.php

Templately – Elementor &amp; Gutenberg Template Library: 6500+ Free &amp; Pro Ready Templates And Cloud!, version 1.3.1. 20 lines.

- Page: https://pluginprobe.com/plugins/templately/1.3.1/code/core/class-base.php
- Raw: https://pluginprobe.com/plugins/templately/1.3.1/raw/core/class-base.php
- Modified: 2020-03-02T08:11:18+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/templately/1.3.1/code/core/class-base.php#L10-L20`.

```php
<?php

namespace Templately;

class Base {
    protected static $_instance = null;
    /**
     * Get Instance of Called Class
     *
     * @return void
     */
    public static function get_instance(){
        if( static::$_instance === null ) {
            $class = get_called_class();
            static::$_instance = new $class;
        }
        return static::$_instance;
    }
}

```
