Version 1
[yaffs-website] / vendor / consolidation / annotated-command / src / ExitCodeInterface.php
diff --git a/vendor/consolidation/annotated-command/src/ExitCodeInterface.php b/vendor/consolidation/annotated-command/src/ExitCodeInterface.php
new file mode 100644 (file)
index 0000000..bec902b
--- /dev/null
@@ -0,0 +1,12 @@
+<?php
+namespace Consolidation\AnnotatedCommand;
+
+/**
+ * If an annotated command method encounters an error, then it
+ * should either throw an exception, or return a result object
+ * that implements ExitCodeInterface.
+ */
+interface ExitCodeInterface
+{
+    public function getExitCode();
+}