public function generate($source = null)
    {
        // set input
        $this->getParser()->setInput(
            ['className' => $source]
        );

        // Add these dependencies to collection
        $this->addRawDependenciesToCollection($this->getParser()->parse(), $source);
    }
public function generate($source = null)
    {
        // set input
        $this->getParser()->setInput(
            ['className' => $source]
        );

        // Add these dependencies to collection
        $this->addRawDependenciesToCollection($this->getParser()->parse(), $source);
    }
public function generate ( $ source = null ) { // set input $ this -> getParser ( ) -> setInput ( [ 'className' => $ source ] ) ; // Add these dependencies to collection $ this -> addRawDependenciesToCollection ( $ this -> getParser ( ) -> parse ( ) , $ source ) ; }
Builds the collection from dependency parser result for given class.

@param string $source Name of the class to parse dependencies for

@author Benjamin Carl <opensource@clickalicious.de>

@return void
Builds the collection from dependency parser result for given class .