public static function getContainer() : ?ContainerInterface
    {
        if (is_null(self::$container)) {
            self::setContainer(self::getDefaultContainer());
        }

        return self::$container;
    }
public static function getContainer() : ?ContainerInterface
    {
        if (is_null(self::$container)) {
            self::setContainer(self::getDefaultContainer());
        }

        return self::$container;
    }
public static function getContainer ( ) : ? ContainerInterface { if ( is_null ( self :: $ container ) ) { self :: setContainer ( self :: getDefaultContainer ( ) ) ; } return self :: $ container ; }
Get the IoC service container

If no IoC was set, this method will set and
return a default container

@see getDefaultContainer

@return \Illuminate\Contracts\Container\Container|null
Get the IoC service container