Version 1
[yaffs-website] / vendor / consolidation / output-formatters / src / Formatters / RenderDataInterface.php
diff --git a/vendor/consolidation/output-formatters/src/Formatters/RenderDataInterface.php b/vendor/consolidation/output-formatters/src/Formatters/RenderDataInterface.php
new file mode 100644 (file)
index 0000000..a4da8e0
--- /dev/null
@@ -0,0 +1,19 @@
+<?php
+namespace Consolidation\OutputFormatters\Formatters;
+
+use Consolidation\OutputFormatters\Options\FormatterOptions;
+
+interface RenderDataInterface
+{
+    /**
+     * Convert the contents of the output data just before it
+     * is to be printed, prior to output but after restructuring
+     * and validation.
+     *
+     * @param mixed $originalData
+     * @param mixed $restructuredData
+     * @param FormatterOptions $options Formatting options
+     * @return mixed
+     */
+    public function renderData($originalData, $restructuredData, FormatterOptions $options);
+}