src/Glue/Gluer.php
/**
     * Implode self::$words array using $glue.
     *
     * @param string $glue           Character to glue words. Even if is assumed your are using underscore or dash
     *                               character, this method should be capable to use any character as glue.
     * @param int    $wordsMode      The mode of the conversion. It should be one of `Gluer::$lowerCase`,
     *                               `Gluer::$upperCase` or  `Gluer::$titleCase`.
     * @param int    $firstWordMode  Sometimes first word requires special treatment. It should be one of
     *                               `Gluer::$lowerCase`,  `Gluer::$upperCase` or  `Gluer::$titleCase`.
     *
     * @return string
     */
Implode self::$words array using $glue.
@param string $glue           Character to glue words. Even if is assumed your are using underscore or dash
character, this method should be capable to use any character as glue.
@param int    $wordsMode      The mode of the conversion.

@return string
Implode self :: $words array using $glue . @param string $glue Character to glue words . Even if is assumed your are using underscore or dash character this method should be capable to use any character as glue . @param int $wordsMode The mode of the conversion . @return string
protected function glueUsingRules(string $glue, int $wordsMode, int $firstWordMode = null): string
    {
        $convertedWords = $this->changeWordsCase($this->words, $wordsMode);
        if ($firstWordMode) {
            $convertedWords = $this->changeFirstWordCase($convertedWords, $firstWordMode);
        }
        return implode($glue, $convertedWords);
    }
protected function glueUsingRules ( string $ glue , int $ wordsMode , int $ firstWordMode = null ) : string { $ convertedWords = $ this -> changeWordsCase ( $ this -> words , $ wordsMode ) ; if ( $ firstWordMode ) { $ convertedWords = $ this -> changeFirstWordCase ( $ convertedWords , $ firstWordMode ) ; } return implode ( $ glue , $ convertedWords ) ; }
Implode self::$words array using $glue.
Implode self :: $words array using $glue .