Version 1
[yaffs-website] / vendor / consolidation / annotated-command / src / Hooks / ValidatorInterface.php
diff --git a/vendor/consolidation/annotated-command/src/Hooks/ValidatorInterface.php b/vendor/consolidation/annotated-command/src/Hooks/ValidatorInterface.php
new file mode 100644 (file)
index 0000000..c86382e
--- /dev/null
@@ -0,0 +1,14 @@
+<?php
+namespace Consolidation\AnnotatedCommand\Hooks;
+
+use Consolidation\AnnotatedCommand\CommandData;
+
+/**
+ * Validate the arguments for the current command.
+ *
+ * @see HookManager::addValidator()
+ */
+interface ValidatorInterface
+{
+    public function validate(CommandData $commandData);
+}