Conditions | 3 |
Paths | 2 |
Total Lines | 18 |
Code Lines | 10 |
Lines | 18 |
Ratio | 100 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 4 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
34 | return $wpdb->postmeta; |
||
35 | } |
||
36 | |||
37 | /** |
||
38 | * Retrieve the meta table field name to query by. |
||
39 | * |
||
40 | * @return string |
||
41 | */ |
||
42 | public function get_table_field_name() { |
||
43 | return 'post_id'; |
||
44 | } |
||
45 | |||
46 | /** |
||
47 | * Set the post ID of the datastore. |
||
48 | * |
||
49 | * @param int $id ID of the post. |
||
50 | */ |
||
51 | public function set_id( $id ) { |
||
52 | $this->post_id = $id; |
||
64 |