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