| 1 | <?php |
||
| 17 | abstract class Wordlift_Storage { |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Get the values for the property of the {@link WP_Post}. |
||
| 21 | * |
||
| 22 | * @since 3.15.0 |
||
| 23 | * |
||
| 24 | * @param int $post_id The {@link WP_Post}'s id. |
||
| 25 | * |
||
| 26 | * @return array |
||
| 27 | */ |
||
| 28 | abstract public function get( $post_id ); |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Get the first value for a property. |
||
| 32 | * |
||
| 33 | * @since 3.15.0 |
||
| 34 | * |
||
| 35 | * @param int $post_id The {@link WP_Post}'s id. |
||
| 36 | * |
||
| 37 | * @return string The first property value or an empty string. |
||
| 38 | */ |
||
| 39 | public function get_first( $post_id ) { |
||
| 49 | |||
| 50 | } |
||
| 51 |