src/TerminalObject/Dynamic/Input.php
protected function isValidResponse($response)
    {
        if (empty($this->acceptable)) {
            return true;
        }

        if ($this->acceptableIsClosure()) {
            return call_user_func($this->acceptable, $response);
        }

        return $this->isAcceptableResponse($response);
    }
protected function isValidResponse($response)
    {
        if (empty($this->acceptable)) {
            return true;
        }

        if ($this->acceptableIsClosure()) {
            return call_user_func($this->acceptable, $response);
        }

        return $this->isAcceptableResponse($response);
    }
protected function isValidResponse ( $ response ) { if ( empty ( $ this -> acceptable ) ) { return true ; } if ( $ this -> acceptableIsClosure ( ) ) { return call_user_func ( $ this -> acceptable , $ response ) ; } return $ this -> isAcceptableResponse ( $ response ) ; }
Determine if the user's response is valid based on the current settings

@param string $response

@return boolean $response
Determine if the user s response is valid based on the current settings