value = $value; } function __toString() { $value = htmlentities($this->value); return "{$value}"; } }