Completed
Push — master ( 4ef3e4...2cdabf )
by Stephanie
03:15
created

FrmPointers   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 39
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A get_instance() 0 9 2
A intro_tour() 0 3 1
A print_scripts() 0 3 1
1
<?php
2
3
/**
4
 * This class handles the pointers used in the introduction tour.
5
 */
6
class FrmPointers {
7
8
	/**
9
	 * @var object Instance of this class
10
	 */
11
	public static $instance;
12
13
	/**
14
	 * Get the singleton instance of this class
15
	 *
16
	 * @return object
17
	 */
18
	public static function get_instance() {
19
		_deprecated_function( __FUNCTION__, '3.01.03' );
20
21
		if ( ! ( self::$instance instanceof self ) ) {
22
			self::$instance = new self();
23
		}
24
25
		return self::$instance;
26
	}
27
28
	/**
29
	 * Load the introduction tour
30
	 */
31
	public function intro_tour() {
32
		_deprecated_function( __FUNCTION__, '3.01.03' );
33
	}
34
35
	/**
36
	 * Prints the pointer script
37
	 *
38
	 * @param string $selector The CSS selector the pointer is attached to.
39
	 * @param array  $options  The options for the pointer.
40
	 */
41
	public function print_scripts( $selector, $options ) {
42
		_deprecated_function( __FUNCTION__, '3.01.03' );
43
	}
44
}
45