public function replaceClassName($stub, $tableName)
    {
        return str_replace('{{class}}', $this->options['singular'] ? str_singular(studly_case($tableName)): studly_case($tableName), $stub);
    }
public function replaceClassName($stub, $tableName)
    {
        return str_replace('{{class}}', $this->options['singular'] ? str_singular(studly_case($tableName)): studly_case($tableName), $stub);
    }
public function replaceClassName ( $ stub , $ tableName ) { return str_replace ( '{{class}}' , $ this -> options [ 'singular' ] ? str_singular ( studly_case ( $ tableName ) ) : studly_case ( $ tableName ) , $ stub ) ; }
replaces the class name in the stub.

@param string $stub      stub content
@param string $tableName the name of the table to make as the class

@return string stub content
replaces the class name in the stub .