public function removeInstance($className): self
	{
		// Determine the instance name
		$instanceName = strtolower($className);

		if (!isset($this->{$instanceName}))
		{
			throw new FactoryException("Could not remove instance of '".$instanceName."'. Instance was not found.", 1);
		}

		// Unset
		unset($this->{$instanceName});

		// Return itself
		return $this;
	}
public function removeInstance($className): self
	{
		// Determine the instance name
		$instanceName = strtolower($className);

		if (!isset($this->{$instanceName}))
		{
			throw new FactoryException("Could not remove instance of '".$instanceName."'. Instance was not found.", 1);
		}

		// Unset
		unset($this->{$instanceName});

		// Return itself
		return $this;
	}
public function removeInstance ( $ className ) : self { // Determine the instance name $ instanceName = strtolower ( $ className ) ; if ( ! isset ( $ this -> { $ instanceName } ) ) { throw new FactoryException ( "Could not remove instance of '" . $ instanceName . "'. Instance was not found." , 1 ) ; } // Unset unset ( $ this -> { $ instanceName } ) ; // Return itself return $ this ; }
Remove an instance of one of the loaded classes.

@param string $className The name of the loaded class, WITHOUT the namespace
@return Factory Factory Instance
Remove an instance of one of the loaded classes .