Where possible you should give a qualified class name, that is prefixed
with the package identifier.
$builder->buildClass('php::depend::Parser');
To determine the correct class, this method implements the following
algorithm.
- Check for an exactly matching instance and reuse it.
- Check for a class instance that belongs to the default package. If
such an instance exists, reuse it and replace the default package with
the newly given package information.
- Check that the requested class is in the default package, if this
is true, reuse the first class instance and ignore the default package.
- Create a new instance for the specified package.