]> scripts.mit.edu Git - autoinstallsdev/mediawiki.git/blobdiff - vendor/liuggio/statsd-php-client/src/Liuggio/StatsdClient/Sender/SenderInterface.php
MediaWiki 1.30.2
[autoinstallsdev/mediawiki.git] / vendor / liuggio / statsd-php-client / src / Liuggio / StatsdClient / Sender / SenderInterface.php
diff --git a/vendor/liuggio/statsd-php-client/src/Liuggio/StatsdClient/Sender/SenderInterface.php b/vendor/liuggio/statsd-php-client/src/Liuggio/StatsdClient/Sender/SenderInterface.php
new file mode 100644 (file)
index 0000000..8dc8fd3
--- /dev/null
@@ -0,0 +1,32 @@
+<?php
+
+namespace Liuggio\StatsdClient\Sender;
+
+Interface SenderInterface
+{
+    /**
+     * @abstract
+     * @return mixed
+     */
+    function open();
+
+    /**
+     * @abstract
+     *
+     * @param        $handle
+     * @param string $string
+     * @param null   $length
+     *
+     * @return mixed
+     */
+    function write($handle, $string, $length = null);
+
+    /**
+     * @abstract
+     *
+     * @param $handle
+     *
+     * @return mixed
+     */
+    function close($handle);
+}