EP_Config::factory PHP Method

factory() public static method

Get a singleton instance of the class
Since: 0.1.0
public static factory ( ) : EP_Config
return EP_Config
    public static function factory()
    {
        static $instance = false;
        if (!$instance) {
            $instance = new self();
        }
        return $instance;
    }

Usage Example

function ep_get_network_alias()
{
    return EP_Config::factory()->get_network_alias();
}
All Usage Examples Of EP_Config::factory