-# mixed pq\Converter::convertFromString(string $data[, int $type = NULL)
+# mixed pq\Converter::convertFromString(string $data, int $type)
Convert a string received from the PostgreSQL server back to a PHP type.
* string $data
String data received from the server.
-* Optional in $type = NULL
- The type of the data. Irrelevant for single-type converters.
+* int $type
+ The type OID of the data. Irrelevant for single-type converters.
## Returns:
<?php
abstract class Example implements pq\Converter {
- function convertFromString($data, $type = NULL) {
+ function convertFromString($data, $type) {
return uuid_parse($data);
}
}