: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
* @package WPSEO\Internals
* Class WPSEO_Replacement_Variable.
* This class stores the data of a single snippet variable.
class WPSEO_Replacement_Variable {
* The label of the replacement variable.
* The description of the replacement variable.
* 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->description = $description;
* Returns the variable to use.
public function get_variable() {
* Returns the label of the replacement variable.
public function get_label() {
* Returns the description of the replacement variable.
public function get_description() {
return $this->description;