jetpack
/
vendor
/
wp-php-toolkit
/
data-liberation
/
DataFormatProducer
/
interface-data-format-producer.php
interface-data-format-producer.php
20 lines
| 1 | <?php |
| 2 | |
| 3 | namespace WordPress\DataLiberation\DataFormatProducer; |
| 4 | |
| 5 | /** |
| 6 | * Represents a Block Markup + Metadata -> {Data Format} producer. |
| 7 | * |
| 8 | * Used by the Data Liberation exporters for exporting posts to HTML, Markdown, |
| 9 | * and other static formats etc. |
| 10 | */ |
| 11 | interface DataFormatProducer { |
| 12 | /** |
| 13 | * Converts the input document specified in the constructor to block markup. |
| 14 | * |
| 15 | * @return string The data format representing the block markup and metadata |
| 16 | * passed to the constructor. |
| 17 | */ |
| 18 | public function produce(); |
| 19 | } |
| 20 |