public function setValue($val) { if (!is_string($val)) { throw new RqlDriverError("Not a string"); } parent::setValue($val); }
public static function decodeServerResponse($json) { $result = new StringDatum(); $result->setValue((string) $json); return $result; }