public function getName()
    {
        $similarWords = [];
        $words = [];

        foreach ($this->_definitionSets as $definitionSet) {
            $word = $this->_getUniqueWord($definitionSet, $similarWords);
            $words[] = $word['word'];
            $similarWords[] = $word['word'];
            $similarWords = array_merge($similarWords, $word['similarWords']);
        }

        return implode(' ', $words);
    }
public function getName()
    {
        $similarWords = [];
        $words = [];

        foreach ($this->_definitionSets as $definitionSet) {
            $word = $this->_getUniqueWord($definitionSet, $similarWords);
            $words[] = $word['word'];
            $similarWords[] = $word['word'];
            $similarWords = array_merge($similarWords, $word['similarWords']);
        }

        return implode(' ', $words);
    }
public function getName ( ) { $ similarWords = [ ] ; $ words = [ ] ; foreach ( $ this -> _definitionSets as $ definitionSet ) { $ word = $ this -> _getUniqueWord ( $ definitionSet , $ similarWords ) ; $ words [ ] = $ word [ 'word' ] ; $ similarWords [ ] = $ word [ 'word' ] ; $ similarWords = array_merge ( $ similarWords , $ word [ 'similarWords' ] ) ; } return implode ( ' ' , $ words ) ; }
Gets a randomly generated video game name.

@api
@return string A random video game name.
Gets a randomly generated video game name .