WordPoints_BP_Entity_Message_Subject   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A get_title() 0 3 1
1
<?php
2
3
/**
4
 * Message subject entity attribute class.
5
 *
6
 * @package WordPoints_BuddyPress
7
 * @since 1.0.0
8
 */
9
10
/**
11
 * Represents a message subject.
12
 *
13
 * @since 1.0.0
14
 */
15
class WordPoints_BP_Entity_Message_Subject extends WordPoints_Entity_Attr_Field {
0 ignored issues
show
Coding Style Compatibility introduced by
PSR1 recommends that each class must be in a namespace of at least one level to avoid collisions.

You can fix this by adding a namespace to your class:

namespace YourVendor;

class YourClass { }

When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.

Loading history...
16
17
	/**
18
	 * @since 1.0.0
19
	 */
20
	protected $storage_type = 'db';
21
22
	/**
23
	 * @since 1.0.0
24
	 */
25
	protected $data_type = 'text';
26
27
	/**
28
	 * @since 1.0.0
29
	 */
30
	protected $field = 'subject';
31
32
	/**
33
	 * @since 1.0.0
34
	 */
35
	public function get_title() {
36
		return _x( 'Subject', 'message entity', 'wordpoints-bp' );
37
	}
38
}
39
40
// EOF
41