Explorar el Código

add setSerializeNull method to VisitorInterface

mattw hace 13 años
padre
commit
89ef72e8b4
Se han modificado 1 ficheros con 7 adiciones y 0 borrados
  1. 7 0
      Serializer/VisitorInterface.php

+ 7 - 0
Serializer/VisitorInterface.php

@@ -41,6 +41,13 @@ interface VisitorInterface
      */
     function prepare($data);
 
+    /**
+     * Controls whether keys will be preserved when serializing null values
+     *
+     * @param bool $serializeNull
+     */
+    public function setSerializeNull($serializeNull);
+
     /**
      * @param mixed $data
      * @param array $type