public function orWhere($param){
        if (func_num_args() == 3) {

            $operator =strtolower(func_get_arg(1));
            if (is_numeric(array_search($operator, $this->condition))) {
                $this->whereby .=' or '.self::sanitize(func_get_arg(0))
                    .' '. $operator . ' \''
                    . self::sanitize(func_get_arg(2)) . '\'';
            } else {
                static::$response["status"] = "error";
                static::$response["response"] = "Invalid condition provided in where function";
                static::$response["code"] = 7000;
            }
        } else if (func_num_args() == 2) {
            $this->whereby .= ' or '.self::sanitize(func_get_arg(0)) . ' = \''
                . self::sanitize(func_get_arg(1)) . '\'';
        } else {
            static::$response["status"] = "error";
            static::$response["response"] = "Invalid parameters provided in where function";
            static::$response["code"] = 7001;
        }

        return $this;
    }
public function orWhere($param){
        if (func_num_args() == 3) {

            $operator =strtolower(func_get_arg(1));
            if (is_numeric(array_search($operator, $this->condition))) {
                $this->whereby .=' or '.self::sanitize(func_get_arg(0))
                    .' '. $operator . ' \''
                    . self::sanitize(func_get_arg(2)) . '\'';
            } else {
                static::$response["status"] = "error";
                static::$response["response"] = "Invalid condition provided in where function";
                static::$response["code"] = 7000;
            }
        } else if (func_num_args() == 2) {
            $this->whereby .= ' or '.self::sanitize(func_get_arg(0)) . ' = \''
                . self::sanitize(func_get_arg(1)) . '\'';
        } else {
            static::$response["status"] = "error";
            static::$response["response"] = "Invalid parameters provided in where function";
            static::$response["code"] = 7001;
        }

        return $this;
    }
public function orWhere ( $ param ) { if ( func_num_args ( ) == 3 ) { $ operator = strtolower ( func_get_arg ( 1 ) ) ; if ( is_numeric ( array_search ( $ operator , $ this -> condition ) ) ) { $ this -> whereby .= ' or ' . self :: sanitize ( func_get_arg ( 0 ) ) . ' ' . $ operator . ' \'' . self :: sanitize ( func_get_arg ( 2 ) ) . '\'' ; } else { static :: $ response [ "status" ] = "error" ; static :: $ response [ "response" ] = "Invalid condition provided in where function" ; static :: $ response [ "code" ] = 7000 ; } } else if ( func_num_args ( ) == 2 ) { $ this -> whereby .= ' or ' . self :: sanitize ( func_get_arg ( 0 ) ) . ' = \'' . self :: sanitize ( func_get_arg ( 1 ) ) . '\'' ; } else { static :: $ response [ "status" ] = "error" ; static :: $ response [ "response" ] = "Invalid parameters provided in where function" ; static :: $ response [ "code" ] = 7001 ; } return $ this ; }
Adds condition for or in where clause
@see where
@param $param
@return $this
Adds condition for or in where clause