Core_Read_Interface.php
2 weeks ago
Decorator.php
2 weeks ago
Filter_Validation.php
2 weeks ago
Formatter_Interface.php
2 weeks ago
Implementation_Error.php
2 weeks ago
Interface.php
2 weeks ago
Query_Filters.php
2 weeks ago
Read_Interface.php
2 weeks ago
Setter_Interface.php
2 weeks ago
Update_Interface.php
2 weeks ago
Usage_Error.php
2 weeks ago
Void_Query_Exception.php
2 weeks ago
Formatter_Interface.php
25 lines
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * Interface Tribe__Repository__Formatter_Interface |
| 5 | * |
| 6 | * This interface is usually implemented by repository decorators that |
| 7 | * need not only to modify the filtering criteria but the return format |
| 8 | * of the items as well. |
| 9 | * |
| 10 | * @since 4.7.19 |
| 11 | */ |
| 12 | interface Tribe__Repository__Formatter_Interface { |
| 13 | /** |
| 14 | * Formats an item handled by a repository to the expected |
| 15 | * format. |
| 16 | * |
| 17 | * @since 4.7.19 |
| 18 | * |
| 19 | * @param int|WP_Post $id |
| 20 | * |
| 21 | * @return mixed |
| 22 | */ |
| 23 | public function format_item( $id ); |
| 24 | } |
| 25 |