public function dependsOn($className)
    {
        // store last created temporary dependency
        if ($this->currentDependency) {
            $this->flush();
        }

        /* @var $this->currentDependency Doozr_Di_Dependency */
        $this->currentDependency = clone $this->dependency;

        $this->currentDependency->setClassName($className);

        return $this;
    }
public function dependsOn($className)
    {
        // store last created temporary dependency
        if ($this->currentDependency) {
            $this->flush();
        }

        /* @var $this->currentDependency Doozr_Di_Dependency */
        $this->currentDependency = clone $this->dependency;

        $this->currentDependency->setClassName($className);

        return $this;
    }
public function dependsOn ( $ className ) { // store last created temporary dependency if ( $ this -> currentDependency ) { $ this -> flush ( ) ; } /* @var $this->currentDependency Doozr_Di_Dependency */ $ this -> currentDependency = clone $ this -> dependency ; $ this -> currentDependency -> setClassName ( $ className ) ; return $ this ; }
Setter for the name of the dependency class.

This method is intend to set the name of the dependency class.

@param string $className The name of the dependency class

@author Benjamin Carl <opensource@clickalicious.de>

@return Doozr_Di_Map_Fluent Instance of this class (for method chaining)
Setter for the name of the dependency class .