XStatic\StaticProxy::getInstance PHP Method

getInstance() public static method

Retrieves the instance of the Proxy Subject from the Container that the Static Proxy is associated with
public static getInstance ( ) : mixed
return mixed
    public static function getInstance()
    {
        if (!static::$container instanceof ContainerInterface) {
            throw new \RuntimeException('The Proxy Subject cannot be retrieved because the Container is not set.');
        }
        return static::$container->get(static::getInstanceIdentifier());
    }