-
Notifications
You must be signed in to change notification settings - Fork 879
/
class-wpseo-replacement-variable.php
76 lines (68 loc) · 1.34 KB
/
class-wpseo-replacement-variable.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<?php
/**
* WPSEO plugin file.
*
* @package WPSEO\Internals
* @since 7.7
*/
/**
* Class WPSEO_Replacement_Variable.
*
* This class stores the data of a single snippet variable.
*/
class WPSEO_Replacement_Variable {
/**
* The variable to use.
*
* @var string
*/
protected $variable;
/**
* The label of the replacement variable.
*
* @var string
*/
protected $label;
/**
* The description of the replacement variable.
*
* @var string
*/
protected $description;
/**
* WPSEO_Replacement_Variable constructor.
*
* @param string $variable The variable that is replaced.
* @param string $label The label of the replacement variable.
* @param string $description The description of the replacement variable.
*/
public function __construct( $variable, $label, $description ) {
$this->variable = $variable;
$this->label = $label;
$this->description = $description;
}
/**
* Returns the variable to use.
*
* @return string
*/
public function get_variable() {
return $this->variable;
}
/**
* Returns the label of the replacement variable.
*
* @return string
*/
public function get_label() {
return $this->label;
}
/**
* Returns the description of the replacement variable.
*
* @return string
*/
public function get_description() {
return $this->description;
}
}