public function validateConfirmationCode($code)
    {
        $ccAttribute = $this->confirmCodeAttribute;
        if (!$ccAttribute || empty($ccAttribute)) {
            return true;
        }
        return $this->$ccAttribute === $code;
    }
public function validateConfirmationCode($code)
    {
        $ccAttribute = $this->confirmCodeAttribute;
        if (!$ccAttribute || empty($ccAttribute)) {
            return true;
        }
        return $this->$ccAttribute === $code;
    }
public function validateConfirmationCode ( $ code ) { $ ccAttribute = $ this -> confirmCodeAttribute ; if ( ! $ ccAttribute || empty ( $ ccAttribute ) ) { return true ; } return $ this -> $ ccAttribute === $ code ; }
Validate the confirmation code.
@param string $code
@return boolean Whether the confirmation code is valid.
Validate the confirmation code .