public function createInstance(array $args = array())
    {
        $generatedClass = $this->getClassName($this->class);

        if (!class_exists($generatedClass, false)) {
            eval($this->generateClass());
        }

        $ref = new \ReflectionClass($generatedClass);

        return $ref->newInstanceArgs($args);
    }
public function createInstance(array $args = array())
    {
        $generatedClass = $this->getClassName($this->class);

        if (!class_exists($generatedClass, false)) {
            eval($this->generateClass());
        }

        $ref = new \ReflectionClass($generatedClass);

        return $ref->newInstanceArgs($args);
    }
public function createInstance ( array $ args = array ( ) ) { $ generatedClass = $ this -> getClassName ( $ this -> class ) ; if ( ! class_exists ( $ generatedClass , false ) ) { eval ( $ this -> generateClass ( ) ) ; } $ ref = new \ ReflectionClass ( $ generatedClass ) ; return $ ref -> newInstanceArgs ( $ args ) ; }
Creates a new instance  of the enhanced class.

@param  array  $args
@return object
Creates a new instance of the enhanced class .