Completed
Push — master ( 9bbfca...6621c7 )
by J.D.
03:38
created

WordPoints_Entity_Post_Title   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 24
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A get_title() 0 3 1
1
<?php
2
3
/**
4
 * Post title entity attribute class.
5
 *
6
 * @package WordPoints\Entities
7
 * @since 2.3.0
8
 */
9
10
/**
11
 * Represents a Post's title attribute.
12
 *
13
 * @since 2.3.0
14
 */
15
class WordPoints_Entity_Post_Title extends WordPoints_Entity_Attr_Field {
16
17
	/**
18
	 * @since 2.3.0
19
	 */
20
	protected $storage_type = 'db';
21
22
	/**
23
	 * @since 2.3.0
24
	 */
25
	protected $data_type = 'text';
26
27
	/**
28
	 * @since 2.3.0
29
	 */
30
	protected $field = 'post_title';
31
32
	/**
33
	 * @since 2.3.0
34
	 */
35
	public function get_title() {
36
		return _x( 'Title', 'post entity', 'wordpoints' );
37
	}
38
}
39
40
// EOF
41