src/TerminalObject/Dynamic/Input.php
protected function isAcceptableResponse($response)
    {
        if ($this->strict) {
            return in_array($response, $this->acceptable);
        }

        $acceptable = $this->levelPlayingField($this->acceptable);
        $response   = $this->levelPlayingField($response);

        return in_array($response, $acceptable);
    }
protected function isAcceptableResponse($response)
    {
        if ($this->strict) {
            return in_array($response, $this->acceptable);
        }

        $acceptable = $this->levelPlayingField($this->acceptable);
        $response   = $this->levelPlayingField($response);

        return in_array($response, $acceptable);
    }
protected function isAcceptableResponse ( $ response ) { if ( $ this -> strict ) { return in_array ( $ response , $ this -> acceptable ) ; } $ acceptable = $ this -> levelPlayingField ( $ this -> acceptable ) ; $ response = $ this -> levelPlayingField ( $ response ) ; return in_array ( $ response , $ acceptable ) ; }
Determine if the user's response is in the acceptable responses array

@param string $response

@return boolean $response
Determine if the user s response is in the acceptable responses array