| 1 |
<?php |
| 2 |
/** |
| 3 |
* API Endpoint: Traffic Boost Settings |
| 4 |
* |
| 5 |
* @package Parsely |
| 6 |
* @since 3.19.0 |
| 7 |
*/ |
| 8 |
|
| 9 |
declare(strict_types=1); |
| 10 |
|
| 11 |
namespace Parsely\REST_API\Settings; |
| 12 |
|
| 13 |
/** |
| 14 |
* Endpoint for saving and retrieving Content Intelligence Traffic Boost |
| 15 |
* settings. |
| 16 |
* |
| 17 |
* @since 3.19.0 |
| 18 |
* |
| 19 |
* @phpstan-import-type Subvalue_Spec from Base_Settings_Endpoint |
| 20 |
*/ |
| 21 |
class Endpoint_Traffic_Boost_Settings extends Base_Settings_Endpoint { |
| 22 |
/** |
| 23 |
* Returns the endpoint's name. |
| 24 |
* |
| 25 |
* @since 3.19.0 |
| 26 |
* |
| 27 |
* @return string |
| 28 |
*/ |
| 29 |
public static function get_endpoint_name(): string { |
| 30 |
return 'traffic-boost'; |
| 31 |
} |
| 32 |
|
| 33 |
/** |
| 34 |
* Returns the meta entry's key. |
| 35 |
* |
| 36 |
* @since 3.19.0 |
| 37 |
* |
| 38 |
* @return string The meta entry's key. |
| 39 |
*/ |
| 40 |
protected function get_meta_key(): string { |
| 41 |
return 'parsely_content_helper_settings_traffic_boost'; |
| 42 |
} |
| 43 |
|
| 44 |
/** |
| 45 |
* Returns the endpoint's subvalues specifications. |
| 46 |
* |
| 47 |
* @since 3.19.0 |
| 48 |
* |
| 49 |
* @return array<string, Subvalue_Spec> |
| 50 |
*/ |
| 51 |
protected function get_subvalues_specs(): array { |
| 52 |
return array(); |
| 53 |
} |
| 54 |
} |
| 55 |
|