Completed
Push — master ( 226003...873ec4 )
by J.D.
03:07
created

WordPoints_Entity_Stored_Array   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
get_storage_array() 0 1 ?
A get_storage_info() 0 6 1
1
<?php
2
3
/**
4
 * Array stored entity interface.
5
 *
6
 * @package wordpoints-hooks-api
7
 * @since   1.0.0
8
 */
9
10
/**
11
 * Implemented by entities that are stored in arrays.
12
 *
13
 * @since 1.0.0
14
 */
15
abstract class WordPoints_Entity_Stored_Array
16
	extends WordPoints_Entity
17
	implements WordPoints_Entityish_StoredI {
18
19
	/**
20
	 * Get the array that the objects are stored in.
21
	 *
22
	 * @since 1.0.0
23
	 *
24
	 * @return array The array.
25
	 */
26
	abstract public function get_storage_array();
27
28
	/**
29
	 * @since 1.0.0
30
	 */
31
	public function get_storage_info() {
32
		return array(
33
			'type' => 'array',
34
			'info' => array( 'type' => 'method' ),
35
		);
36
	}
37
}
38
39
// EOF
40