private function generateString()
    {
        $this->generateNumbers();
        $this->adjective = $this->adjectives[$this->first];
        $this->animal = $this->animals[$this->second];
        switch ($this->case) {
            case 'ucfirst':
                $this->string = ucfirst($this->adjective . $this->animal . $this->number);
                break;
            case 'ucwords':
            case 'sentence':
                $this->string = ucfirst($this->adjective) . ucfirst($this->animal) . ucfirst($this->number);
                break;
            case 'camel':
                $this->string = $this->adjective . ucfirst($this->animal) . $this->number;
                break;
            default:
                $this->string = $this->adjective . $this->animal . $this->number;
                break;
        }
    }
private function generateString()
    {
        $this->generateNumbers();
        $this->adjective = $this->adjectives[$this->first];
        $this->animal = $this->animals[$this->second];
        switch ($this->case) {
            case 'ucfirst':
                $this->string = ucfirst($this->adjective . $this->animal . $this->number);
                break;
            case 'ucwords':
            case 'sentence':
                $this->string = ucfirst($this->adjective) . ucfirst($this->animal) . ucfirst($this->number);
                break;
            case 'camel':
                $this->string = $this->adjective . ucfirst($this->animal) . $this->number;
                break;
            default:
                $this->string = $this->adjective . $this->animal . $this->number;
                break;
        }
    }
private function generateString ( ) { $ this -> generateNumbers ( ) ; $ this -> adjective = $ this -> adjectives [ $ this -> first ] ; $ this -> animal = $ this -> animals [ $ this -> second ] ; switch ( $ this -> case ) { case 'ucfirst' : $ this -> string = ucfirst ( $ this -> adjective . $ this -> animal . $ this -> number ) ; break ; case 'ucwords' : case 'sentence' : $ this -> string = ucfirst ( $ this -> adjective ) . ucfirst ( $ this -> animal ) . ucfirst ( $ this -> number ) ; break ; case 'camel' : $ this -> string = $ this -> adjective . ucfirst ( $ this -> animal ) . $ this -> number ; break ; default : $ this -> string = $ this -> adjective . $ this -> animal . $ this -> number ; break ; } }
Generate a string.
Generate a string .