Completed
Push — develop ( 82d5df...652db5 )
by
unknown
09:07
created

Wordlift_Install::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 0
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
1
<?php
2
/**
3
 * Installs: Install interface.
4
 *
5
 * The interface for Installations.
6
 *
7
 * @since      3.18.0
8
 * @package    Wordlift
9
 * @subpackage Wordlift/install
10
 */
11
12
/**
13
 * Define the {@link Wordlift_Install} interface.
14
 *
15
 * @since      3.18.0
16
 * @package    Wordlift
17
 * @subpackage Wordlift/install
18
 */
19
class Wordlift_Install {
20
21
	/**
22
	 * A {@link Wordlift_Log_Service} instance.
23
	 *
24
	 * @since  3.18.0
25
	 * @access private
26
	 * @var \Wordlift_Log_Service $log A {@link Wordlift_Log_Service} instance.
27
	 */
28
	protected $log;
29
30
	/**
31
	 * Wordlift_Install_Service constructor.
32
	 *
33
	 * @since 3.18.0
34
	 */
35
	public function __construct() {
36
37
		$this->log = Wordlift_Log_Service::get_logger( 'Wordlift_Install_' . str_replace( '.', '_', static::$version ) );
38
39
		$this->log->trace( 'Installing version ' . static::$version . ' ...' );
40
	}
41
42
	/**
43
	 * Return the current version of the installation.
44
	 *
45
	 * @since 3.18.0
46
	 */
47
	public function get_version() {
48
		return static::$version;
49
	}
50
}
51