Swift_DependencyContainer::asNewInstanceOf PHP Method

asNewInstanceOf() public method

{@link register()} must be called before this will work. Any arguments can be set with {@link withDependencies()}, {@link addConstructorValue()} or {@link addConstructorLookup()}.
public asNewInstanceOf ( string $className ) : Swift_DependencyContainer
$className string
return Swift_DependencyContainer
    public function asNewInstanceOf($className)
    {
        $endPoint =& $this->_getEndPoint();
        $endPoint['lookupType'] = self::TYPE_INSTANCE;
        $endPoint['className'] = $className;
        return $this;
    }