Endpoints
4 months ago
Swagger
4 months ago
Messages_Interface.php
4 months ago
Post_Repository_Interface.php
4 months ago
Validator_Interface.php
4 months ago
Post_Repository_Interface.php
29 lines
| 1 | <?php |
| 2 | |
| 3 | namespace Pods\REST\Interfaces; |
| 4 | |
| 5 | // Don't load directly. |
| 6 | if ( ! defined( 'ABSPATH' ) ) { |
| 7 | die( '-1' ); |
| 8 | } |
| 9 | |
| 10 | /** |
| 11 | * Post Repository interface. |
| 12 | * |
| 13 | * @credit The Events Calendar team - https://github.com/the-events-calendar/tribe-common |
| 14 | * |
| 15 | * @since 2.8.0 |
| 16 | */ |
| 17 | interface Post_Repository_Interface { |
| 18 | /** |
| 19 | * Retrieves an array representation of the post. |
| 20 | * |
| 21 | * @since 3.0 |
| 22 | * |
| 23 | * @param int $id The post ID. |
| 24 | * |
| 25 | * @return array An array representation of the post. |
| 26 | */ |
| 27 | public function get_data( $id ); |
| 28 | } |
| 29 |