public function setValue($value, $default = false)
{
if ($value != $this->value && !$default) {
$this->valueChanged = true;
}
if (is_string($value) || is_int($value) || is_float($value)) {
$this->value = (string) $value;
} else {
$this->value = null;
}
}