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

WordPoints_Entity_Post_Excerpt   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 excerpt entity attribute class.
5
 *
6
 * @package WordPoints\Entities
7
 * @since 2.3.0
8
 */
9
10
/**
11
 * Represents a Post's excerpt attribute.
12
 *
13
 * This will only be set when the user has entered a hand-crafted excerpt in the meta
14
 * box on the post edit screen, even though the them may auto-generate excerpts for
15
 * all posts.
16
 *
17
 * @since 2.3.0
18
 */
19
class WordPoints_Entity_Post_Excerpt extends WordPoints_Entity_Attr_Field {
20
21
	/**
22
	 * @since 2.3.0
23
	 */
24
	protected $storage_type = 'db';
25
26
	/**
27
	 * @since 2.3.0
28
	 */
29
	protected $data_type = 'text';
30
31
	/**
32
	 * @since 2.3.0
33
	 */
34
	protected $field = 'post_excerpt';
35
36
	/**
37
	 * @since 2.3.0
38
	 */
39
	public function get_title() {
40
		return _x( 'Excerpt', 'post entity', 'wordpoints' );
41
	}
42
}
43
44
// EOF
45