@@ -24,10 +24,6 @@ discard block |
||
24 | 24 | * |
25 | 25 | * @param string $table |
26 | 26 | * @param string $salt |
27 | - * @param string $range_field |
|
28 | - * @param null $key_fields |
|
29 | - * @param null $filter_field |
|
30 | - * @param array $checksum_fields |
|
31 | 27 | */ |
32 | 28 | |
33 | 29 | public function __construct( $table, $salt = null ) { |
@@ -99,6 +95,9 @@ discard block |
||
99 | 95 | $this->checksum_fields = $table_configuration['checksum_fields']; |
100 | 96 | } |
101 | 97 | |
98 | + /** |
|
99 | + * @param string $table |
|
100 | + */ |
|
102 | 101 | private function validate_table_name( $table ) { |
103 | 102 | if ( empty( $table ) ) { |
104 | 103 | throw new Exception( 'Invalid table name: empty' ); |
@@ -151,6 +150,10 @@ discard block |
||
151 | 150 | } |
152 | 151 | |
153 | 152 | // TODO make sure the function is described as DOESN'T DO VALIDATION |
153 | + |
|
154 | + /** |
|
155 | + * @param boolean $granular_result |
|
156 | + */ |
|
154 | 157 | private function build_checksum_query( $range_from, $range_to, $filter_values, $granular_result ) { |
155 | 158 | global $wpdb; |
156 | 159 |