public static function getOutput($class, $options = null)
    {
        $fakeClass = new $class($options);
        $generatorName = $fakeClass->generatedBy();
        $generator = new $generatorName();
        $generator->setCaller($fakeClass);

        return $generator->generate();
    }
public static function getOutput($class, $options = null)
    {
        $fakeClass = new $class($options);
        $generatorName = $fakeClass->generatedBy();
        $generator = new $generatorName();
        $generator->setCaller($fakeClass);

        return $generator->generate();
    }
public static function getOutput ( $ class , $ options = null ) { $ fakeClass = new $ class ( $ options ) ; $ generatorName = $ fakeClass -> generatedBy ( ) ; $ generator = new $ generatorName ( ) ; $ generator -> setCaller ( $ fakeClass ) ; return $ generator -> generate ( ) ; }
Returns a string output.

@param string            $class
@param string|array|null $options

@return string|array
Returns a string output .