public function isValid($answer)
    {
        // Compare shouldn't be strict, since we might compare a string against a number
        if ($this->storage->get() == $answer) {
            return true;
        } else {
            $this->error = 'Invalid answer provided';
            return false;
        }
    }
public function isValid($answer)
    {
        // Compare shouldn't be strict, since we might compare a string against a number
        if ($this->storage->get() == $answer) {
            return true;
        } else {
            $this->error = 'Invalid answer provided';
            return false;
        }
    }
public function isValid ( $ answer ) { // Compare shouldn't be strict, since we might compare a string against a number if ( $ this -> storage -> get ( ) == $ answer ) { return true ; } else { $ this -> error = 'Invalid answer provided' ; return false ; } }
Checks whether CAPTCHA answer is valid
Should be always called after rendering

@param string $answer
@return boolean
Checks whether CAPTCHA answer is valid Should be always called after rendering