Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 2 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
||
| 1 | <?php |
| 2 | /** |
| 3 | * SocialSpec document interface. |
| 4 | * |
| 5 | * @package automattic/jetpack-publicize |
| 6 | */ |
| 7 | |
| 8 | namespace Automattic\Jetpack\Publicize\Socialspec; |
| 9 | |
| 10 | if ( ! defined( 'ABSPATH' ) ) { |
| 11 | exit( 0 ); |
| 12 | } |
| 13 | |
| 14 | /** |
| 15 | * A document served at /.well-known/. |
| 16 | */ |
| 17 | interface Document { |
| 18 | |
| 19 | /** |
| 20 | * The media type, without charset. |
| 21 | * |
| 22 | * @return string |
| 23 | */ |
| 24 | public function get_content_type(); |
| 25 | |
| 26 | /** |
| 27 | * The document. |
| 28 | * |
| 29 | * @return string|null Null if there is nothing to publish. |
| 30 | */ |
| 31 | public function get_content(); |
| 32 | } |