view vendor/consolidation/output-formatters/src/StructuredData/TableDataInterface.php @ 0:4c8ae668cc8c

Initial import (non-working)
author Chris Cannam
date Wed, 29 Nov 2017 16:09:58 +0000
parents
children 5fb285c0d0e3
line wrap: on
line source
<?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);
}