Version 1
[yaffs-website] / vendor / consolidation / output-formatters / src / StructuredData / TableDataInterface.php
diff --git a/vendor/consolidation/output-formatters/src/StructuredData/TableDataInterface.php b/vendor/consolidation/output-formatters/src/StructuredData/TableDataInterface.php
new file mode 100644 (file)
index 0000000..341b822
--- /dev/null
@@ -0,0 +1,22 @@
+<?php
+namespace Consolidation\OutputFormatters\StructuredData;
+
+interface TableDataInterface
+{
+    /**
+     * Return the original data for this table.  Used by any
+     * formatter that is -not- a table.
+     */
+    public function getOriginalData();
+
+    /**
+     * Convert structured data into a form suitable for use
+     * by the table formatter.
+     *
+     * @param boolean $includeRowKey Add a field containing the
+     *   key from each row.
+     *
+     * @return array
+     */
+    public function getTableData($includeRowKey = false);
+}