Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/clone/wp-conte.../plugins/wordpres.../src/promotio.../domain
File: abstract-promotion.php
<?php
[0] Fix | Delete
[1] Fix | Delete
namespace Yoast\WP\SEO\Promotions\Domain;
[2] Fix | Delete
[3] Fix | Delete
/**
[4] Fix | Delete
* Abstract class for a promotion.
[5] Fix | Delete
*/
[6] Fix | Delete
abstract class Abstract_Promotion implements Promotion_Interface {
[7] Fix | Delete
[8] Fix | Delete
/**
[9] Fix | Delete
* The promotion name.
[10] Fix | Delete
*
[11] Fix | Delete
* @var string
[12] Fix | Delete
*/
[13] Fix | Delete
private $promotion_name;
[14] Fix | Delete
[15] Fix | Delete
/**
[16] Fix | Delete
* The time interval in which the promotion is active.
[17] Fix | Delete
*
[18] Fix | Delete
* @var Time_Interval
[19] Fix | Delete
*/
[20] Fix | Delete
private $time_interval;
[21] Fix | Delete
[22] Fix | Delete
/**
[23] Fix | Delete
* Class constructor.
[24] Fix | Delete
*
[25] Fix | Delete
* @param string $promotion_name The promotion name.
[26] Fix | Delete
* @param Time_Interval $time_interval The time interval in which the promotion is active.
[27] Fix | Delete
*/
[28] Fix | Delete
public function __construct( string $promotion_name, Time_Interval $time_interval ) {
[29] Fix | Delete
$this->promotion_name = $promotion_name;
[30] Fix | Delete
$this->time_interval = $time_interval;
[31] Fix | Delete
}
[32] Fix | Delete
[33] Fix | Delete
/**
[34] Fix | Delete
* Returns the promotion name.
[35] Fix | Delete
*
[36] Fix | Delete
* @return string
[37] Fix | Delete
*/
[38] Fix | Delete
public function get_promotion_name() {
[39] Fix | Delete
return $this->promotion_name;
[40] Fix | Delete
}
[41] Fix | Delete
[42] Fix | Delete
/**
[43] Fix | Delete
* Returns the time interval in which the promotion is active.
[44] Fix | Delete
*
[45] Fix | Delete
* @return Time_Interval
[46] Fix | Delete
*/
[47] Fix | Delete
public function get_time_interval() {
[48] Fix | Delete
return $this->time_interval;
[49] Fix | Delete
}
[50] Fix | Delete
}
[51] Fix | Delete
[52] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function