Fix: encoder needs the kindOf method on requests
[plcapi.git] / src / Request.php
index df899e3..2c47940 100644 (file)
@@ -357,6 +357,16 @@ class Request
         return $r;
     }
 
+    /**
+     * Kept the old name even if Request class was renamed, for compatibility.
+     *
+     * @return string
+     */
+    public function kindOf()
+    {
+        return 'msg';
+    }
+
     /**
      * Enables/disables the echoing to screen of the xmlrpc responses received.
      *