Version 1
[yaffs-website] / vendor / consolidation / annotated-command / src / Hooks / ExtractOutputInterface.php
diff --git a/vendor/consolidation/annotated-command/src/Hooks/ExtractOutputInterface.php b/vendor/consolidation/annotated-command/src/Hooks/ExtractOutputInterface.php
new file mode 100644 (file)
index 0000000..ad0cdb6
--- /dev/null
@@ -0,0 +1,14 @@
+<?php
+namespace Consolidation\AnnotatedCommand\Hooks;
+
+/**
+ * Extract Output hooks are used to select the particular
+ * data elements of the result that should be printed as
+ * the command output -- perhaps after being formatted.
+ *
+ * @see HookManager::addOutputExtractor()
+ */
+interface ExtractOutputInterface
+{
+    public function extractOutput($result);
+}