Kirki_Output_Property   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 47
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 7
dl 0
loc 47
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A get_value() 0 2 1
A __construct() 0 4 1
A process_value() 0 1 1
1
<?php
2
/**
3
 * Handles CSS properties.
4
 * Extend this class in order to handle exceptions.
5
 *
6
 * @package     Kirki
7
 * @subpackage  Controls
8
 * @copyright   Copyright (c) 2017, Aristeides Stathopoulos
9
 * @license    https://opensource.org/licenses/MIT
10
 * @since       2.2.0
11
 */
12
13
/**
14
 * Output for CSS properties.
15
 */
16
class Kirki_Output_Property {
17
18
	/**
19
	 * The property we're modifying.
20
	 *
21
	 * @access protected
22
	 * @var string
23
	 */
24
	protected $property;
25
26
	/**
27
	 * The value
28
	 *
29
	 * @access protected
30
	 * @var string|array
31
	 */
32
	protected $value;
33
34
	/**
35
	 * Constructor.
36
	 *
37
	 * @access public
38
	 * @param string $property The CSS property we're modifying.
39
	 * @param mixed  $value    The value.
40
	 */
41
	public function __construct( $property, $value ) {
42
		$this->property = $property;
43
		$this->value    = $value;
44
		$this->process_value();
45
	}
46
47
	/**
48
	 * Modifies the value.
49
	 *
50
	 * @access protected
51
	 */
52
	protected function process_value() {
53
54
	}
55
56
	/**
57
	 * Gets the value.
58
	 *
59
	 * @access protected
60
	 */
61
	public function get_value() {
62
		return $this->value;
63
	}
64
}
65