Completed
Push — master ( 361a80...57c765 )
by Atanas
07:10
created

Network_Datastore   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
dl 0
loc 23
rs 10
c 1
b 0
f 1
wmc 3
lcom 0
cbo 1

3 Methods

Rating   Name   Duplication   Size   Complexity  
A get_meta_type() 0 3 1
A get_table_name() 0 4 1
A get_table_field_name() 0 3 1
1
<?php
2
3
namespace Carbon_Fields\Datastore;
4
5
use Carbon_Fields\Field\Field;
6
7
/**
8
 * Theme options datastore class.
9
 */
10
class Network_Datastore extends Meta_Datastore {
11
	/**
12
	 * {@inheritDoc}
13
	 */
14
	public function get_meta_type() {
15
		return 'site';
16
	}
17
18
	/**
19
	 * {@inheritDoc}
20
	 */
21
	public function get_table_name() {
22
		global $wpdb;
23
		return $wpdb->sitemeta;
24
	}
25
26
	/**
27
	 * {@inheritDoc}
28
	 */
29
	public function get_table_field_name() {
30
		return 'site_id';
31
	}
32
}
33