private function getObjectLocalClass(string $objectType) : AbstractObject
    {
        //====================================================================//
        // Safety Check => Object Type is Mapped
        if (!in_array($objectType, array_keys(self::$objectsMap), true)) {
            throw new Exception(sprintf("Unknown Object Type : %s", $objectType));
        }
        //====================================================================//
        // Get Object Class
        $className = static::$objectsMap[$objectType];
        //====================================================================//
        // Safety Check => Validate Object Class
        if (true !== $this->isValidObjectClass($className)) {
            throw new Exception($this->isValidObjectClass($className));
        }
        //====================================================================//
        // Create Object Class
        $genericObject = new $className($this);
        //====================================================================//
        // If StandaloneObject => Configure it!
        if (is_subclass_of($className, AbstractStandaloneObject::class)) {
            $genericObject->configure($objectType, $this->getWebserviceId(), $this->getConfiguration());
        }

        return $genericObject;
    }
private function getObjectLocalClass(string $objectType) : AbstractObject
    {
        //====================================================================//
        // Safety Check => Object Type is Mapped
        if (!in_array($objectType, array_keys(self::$objectsMap), true)) {
            throw new Exception(sprintf("Unknown Object Type : %s", $objectType));
        }
        //====================================================================//
        // Get Object Class
        $className = static::$objectsMap[$objectType];
        //====================================================================//
        // Safety Check => Validate Object Class
        if (true !== $this->isValidObjectClass($className)) {
            throw new Exception($this->isValidObjectClass($className));
        }
        //====================================================================//
        // Create Object Class
        $genericObject = new $className($this);
        //====================================================================//
        // If StandaloneObject => Configure it!
        if (is_subclass_of($className, AbstractStandaloneObject::class)) {
            $genericObject->configure($objectType, $this->getWebserviceId(), $this->getConfiguration());
        }

        return $genericObject;
    }
private function getObjectLocalClass ( string $ objectType ) : AbstractObject { //====================================================================// // Safety Check => Object Type is Mapped if ( ! in_array ( $ objectType , array_keys ( self :: $ objectsMap ) , true ) ) { throw new Exception ( sprintf ( "Unknown Object Type : %s" , $ objectType ) ) ; } //====================================================================// // Get Object Class $ className = static :: $ objectsMap [ $ objectType ] ; //====================================================================// // Safety Check => Validate Object Class if ( true !== $ this -> isValidObjectClass ( $ className ) ) { throw new Exception ( $ this -> isValidObjectClass ( $ className ) ) ; } //====================================================================// // Create Object Class $ genericObject = new $ className ( $ this ) ; //====================================================================// // If StandaloneObject => Configure it! if ( is_subclass_of ( $ className , AbstractStandaloneObject :: class ) ) { $ genericObject -> configure ( $ objectType , $ this -> getWebserviceId ( ) , $ this -> getConfiguration ( ) ) ; } return $ genericObject ; }
Return a New Intance of Requested Object Type Class

@param string $objectType

@throws Exception

@return AbstractObject
Return a New Intance of Requested Object Type Class