public function __construct($value, $detail) { $this->value = (double) $value; $this->detail = $detail; }