| 1 |
<?php |
| 2 |
/** |
| 3 |
* WPSEO plugin file. |
| 4 |
* |
| 5 |
* @package WPSEO\Admin\OnPage |
| 6 |
*/ |
| 7 |
|
| 8 |
/** |
| 9 |
* Represents an implementation of the WPSEO_Endpoint interface to register one or multiple endpoints. |
| 10 |
* |
| 11 |
* @deprecated 13.2 |
| 12 |
* @codeCoverageIgnore |
| 13 |
*/ |
| 14 |
class WPSEO_Endpoint_Ryte implements WPSEO_Endpoint { |
| 15 |
|
| 16 |
/** |
| 17 |
* The namespace of the REST route. |
| 18 |
* |
| 19 |
* @var string |
| 20 |
*/ |
| 21 |
const REST_NAMESPACE = 'yoast/v1'; |
| 22 |
|
| 23 |
/** |
| 24 |
* The route of the ryte endpoint. |
| 25 |
* |
| 26 |
* @var string |
| 27 |
*/ |
| 28 |
const ENDPOINT_RETRIEVE = 'ryte'; |
| 29 |
|
| 30 |
/** |
| 31 |
* The name of the capability needed to retrieve data using the endpoints. |
| 32 |
* |
| 33 |
* @var string |
| 34 |
*/ |
| 35 |
const CAPABILITY_RETRIEVE = 'manage_options'; |
| 36 |
|
| 37 |
/** |
| 38 |
* Constructs the WPSEO_Endpoint_Ryte class and sets the service to use. |
| 39 |
* |
| 40 |
* @deprecated 13.2 |
| 41 |
* @codeCoverageIgnore |
| 42 |
*/ |
| 43 |
public function __construct() { |
| 44 |
_deprecated_function( __METHOD__, 'WPSEO 13.2' ); |
| 45 |
} |
| 46 |
|
| 47 |
/** |
| 48 |
* Registers the REST routes that are available on the endpoint. |
| 49 |
* |
| 50 |
* @deprecated 13.2 |
| 51 |
* @codeCoverageIgnore |
| 52 |
*/ |
| 53 |
public function register() { |
| 54 |
_deprecated_function( __METHOD__, 'WPSEO 13.2' ); |
| 55 |
} |
| 56 |
|
| 57 |
/** |
| 58 |
* Determines whether or not data can be retrieved for the registered endpoints. |
| 59 |
* |
| 60 |
* @deprecated 13.2 |
| 61 |
* @codeCoverageIgnore |
| 62 |
*/ |
| 63 |
public function can_retrieve_data() { |
| 64 |
_deprecated_function( __METHOD__, 'WPSEO 13.2' ); |
| 65 |
} |
| 66 |
} |
| 67 |
|