src/Complement.php
protected static function getInstance()
    {
        $type = self::getType();
        $appID = App::getCurrentID();
        $complementID = self::getCurrentID();
        $complement = get_called_class();
        if (! isset(self::$instances[$appID][$type][$complementID])) {
            self::$instances[$appID][$type][$complementID] = new $complement();
        }

        return self::$instances[$appID][$type][$complementID];
    }
protected static function getInstance()
    {
        $type = self::getType();
        $appID = App::getCurrentID();
        $complementID = self::getCurrentID();
        $complement = get_called_class();
        if (! isset(self::$instances[$appID][$type][$complementID])) {
            self::$instances[$appID][$type][$complementID] = new $complement();
        }

        return self::$instances[$appID][$type][$complementID];
    }
protected static function getInstance ( ) { $ type = self :: getType ( ) ; $ appID = App :: getCurrentID ( ) ; $ complementID = self :: getCurrentID ( ) ; $ complement = get_called_class ( ) ; if ( ! isset ( self :: $ instances [ $ appID ] [ $ type ] [ $ complementID ] ) ) { self :: $ instances [ $ appID ] [ $ type ] [ $ complementID ] = new $ complement ( ) ; } return self :: $ instances [ $ appID ] [ $ type ] [ $ complementID ] ; }
Get complement instance.

@uses \Eliasis\Framework\App::getCurrentID()
@uses \Eliasis\Complement\ComplementHandler::getType()

@return object → complement instance
Get complement instance .