| Server IP : 167.235.67.158 / Your IP : 216.73.216.95 Web Server : Apache System : Linux ubuntu-8gb-nbg1-1 6.8.0-111-generic #111-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 11 23:16:02 UTC 2026 x86_64 User : upstairsbar.co.uk ( 982) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/pawsandpatience.co.uk/wp-content/plugins/wp-smushit/core/parser/ |
Upload File : |
<?php
namespace Smush\Core\Parser;
class Value {
private $previous_value;
private $value;
private $has_updates = false;
public function __construct( $value ) {
$this->previous_value = '';
$this->value = $value;
}
/**
* @param $value
*
* @return bool
*/
public function set( $value ) {
if ( $value === $this->value ) {
/**
* Don't do anything if the value hasn't changed.
* We don't want to do unnecessary string replacements.
*/
return false;
}
$this->previous_value = $this->value;
$this->value = $value;
$this->has_updates = true;
return true;
}
public function get() {
return $this->value;
}
public function get_previous() {
return $this->previous_value;
}
public function has_updates() {
return $this->has_updates;
}
}