]> jfr.im git - irc/unrealircd/unrealircd-rpc-php.git/blobdiff - lib/Contracts/Ban.php
Return types :<
[irc/unrealircd/unrealircd-rpc-php.git] / lib / Contracts / Ban.php
index 3e263ac50ff7a2cd748e64648a6e68594096bfd3..cf04f8685023c6bd250f8820c10e1a0357feea03 100644 (file)
@@ -2,22 +2,23 @@
 
 namespace UnrealIRCd\Contracts;
 
+use stdClass;
+
 interface Ban extends Contract
 {
     /**
      * Add a ban for a user.
+     *
      * @param  string  $user
-     * @param  string  $type
      * @param  array  $params
-     * @return bool
+     * @return stdClass
      */
-    public function add(string $user, string $type, array $params): bool;
+    public function add(string $user, array $params): stdClass;
 
     /**
      * @param  string  $user
-     * @param  string  $type
      * @param  array  $params
-     * @return bool
+     * @return stdClass
      */
-    public function delete(string $user, string $type, array $params): bool;
+    public function delete(string $user, array $params): stdClass;
 }