Completed
Push — master ( b6760c...d0c54a )
by J.D.
03:04
created

WordPoints_Hook_Event_Media_Upload   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 18
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A get_title() 0 4 1
A get_description() 0 4 1
1
<?php
2
3
/**
4
 * Media upload hook event class.
5
 *
6
 * @package wordpoints-hooks-api
7
 * @since 1.0.0
8
 */
9
10
/**
11
 * Represents a hook event that occurs when a media file is uploaded.
12
 *
13
 * @since 1.0.0
14
 */
15
class WordPoints_Hook_Event_Media_Upload extends WordPoints_Hook_Event {
16
17
	/**
18
	 * @since 1.0.0
19
	 */
20
	public function get_title() {
21
22
		return __( 'Upload Media', 'wordpoints' );
23
	}
24
25
	/**
26
	 * @since 1.0.0
27
	 */
28
	public function get_description() {
29
30
		return __( 'When a file is uploaded to the Media Library.', 'wordpoints' );
31
	}
32
}
33
34
// EOF
35