missing bits
authorMichael Wallner <mike@php.net>
Tue, 30 Sep 2014 12:52:36 +0000 (14:52 +0200)
committerMichael Wallner <mike@php.net>
Tue, 30 Sep 2014 12:52:36 +0000 (14:52 +0200)
pq/Converter.md
pq/Converter/convertFromString.md
pq/Converter/convertToString.md

index dee32c46780cdb18de98dcb67a2c68412d5ae59e..f9ad4cfb3a0bcd4702198ce72e2a8d70062cb82e 100644 (file)
@@ -52,7 +52,7 @@ Interface for type conversions.
                 * @param $box Box
                 * @see pq\Converter::convertToString()
                 */
-               function convertToString($box, $type = NULL) {
+               function convertToString($box, $type) {
                        return sprintf("(%F,%F),(%F,%F)", 
                                $box->p1->x, $box->p1->y,
                                $box->p2->x, $box->p2->y
@@ -64,7 +64,7 @@ Interface for type conversions.
                 * @param string $data
                 * @see pq\Converter::convertFromString()
                 */
-               function convertFromString($data, $type = NULL) {
+               function convertFromString($data, $type) {
                        list($p1x, $p1y, $p2x, $p2y) = sscanf($data, "(%f,%f),(%f,%f)");
                        return new Box(new Point($p1x, $p1y), new Point($p2x, $p2y));
                }
index 1afbec9edadcbd33fbf0454dd5111a4813e28369..08af5408bfb42ff6d3ae51fd9244f3d996f71657 100644 (file)
@@ -18,7 +18,7 @@ Convert a string received from the PostgreSQL server back to a PHP type.
        <?php
        
        abstract class Example implements pq\Converter {
-               function convertFromString($data, $type = NULL) {
+               function convertFromString($data, $type) {
                        return uuid_parse($data);
                }
        }
index cfe31c03bb63e8741a4a39dfbd0cfe676fbd28ef..275ef42f00b6b752effae6b514e6810c18e5d0cc 100644 (file)
@@ -18,7 +18,7 @@ Convert a value to a string for use in a query.
        <?php
        
        abstract class Example implements pq\Converter {
-               function convertToString($uuid, $type = NULL)  {
+               function convertToString($uuid, $type)  {
                        return uuid_unparse($uuid);
                }
        }