File "App.php"

Full Path: /home/romayxjt/public_html/wp-content/plugins/fluentform/vendor/wpfluent/framework/src/WPFluent/Foundation/App.php
File size: 605 bytes
MIME-type: text/x-php
Charset: utf-8

<?php

namespace FluentForm\Framework\Foundation;


class App
{   
    protected static $instance = null;

    public static function setInstance($app)
    {
        static::$instance = $app;
    }

    public static function getInstance($module = null)
    {
        if ($module) {
            return static::$instance[$module];
        }

        return static::$instance;
    }

    public static function make($module = null)
    {
        return static::getInstance($module);
    }

    public static function __callStatic($method, $params)
    {
        return static::getInstance($method);
    }
}