public function generate($string)
    {
        if ($this->romanization === true) {
            $string = $this->romanize($string);
        }

        $string = $this->lowercase($string);
        $string = $this->removeUndesiredChars($string);
        $string = $this->trim($string);
        $string = $this->replaceWt($string);
        $string = $this->removeExtraDashes($string);

        return $string;
    }
public function generate($string)
    {
        if ($this->romanization === true) {
            $string = $this->romanize($string);
        }

        $string = $this->lowercase($string);
        $string = $this->removeUndesiredChars($string);
        $string = $this->trim($string);
        $string = $this->replaceWt($string);
        $string = $this->removeExtraDashes($string);

        return $string;
    }
public function generate ( $ string ) { if ( $ this -> romanization === true ) { $ string = $ this -> romanize ( $ string ) ; } $ string = $ this -> lowercase ( $ string ) ; $ string = $ this -> removeUndesiredChars ( $ string ) ; $ string = $ this -> trim ( $ string ) ; $ string = $ this -> replaceWt ( $ string ) ; $ string = $ this -> removeExtraDashes ( $ string ) ; return $ string ; }
Generates a slug

@param string $string Target string
@return string
Generates a slug