15
15
/**
16
16
* OD_REST_URL_Metrics_Store_Endpoint class
17
17
*
18
- * @since n.e.x.t
18
+ * @since 1.0.0
19
19
*/
20
20
final class OD_REST_URL_Metrics_Store_Endpoint {
21
21
22
22
/**
23
23
* Namespace for the REST API endpoint.
24
24
*
25
- * @since n.e.x.t
25
+ * @since 1.0.0
26
26
* @var string
27
27
*/
28
28
const ROUTE_NAMESPACE = 'optimization-detective/v1 ' ;
@@ -34,7 +34,7 @@ final class OD_REST_URL_Metrics_Store_Endpoint {
34
34
* that does not strictly follow the standard usage. Namely, submitting a POST request to this endpoint will either
35
35
* create a new `od_url_metrics` post, or it will update an existing post if one already exists for the provided slug.
36
36
*
37
- * @since n.e.x.t
37
+ * @since 1.0.0
38
38
* @link https://google.aip.dev/136
39
39
* @var string
40
40
*/
@@ -43,7 +43,7 @@ final class OD_REST_URL_Metrics_Store_Endpoint {
43
43
/**
44
44
* Gets the arguments for registering the endpoint.
45
45
*
46
- * @since n.e.x.t
46
+ * @since 1.0.0
47
47
* @access private
48
48
*
49
49
* @return array{
@@ -107,7 +107,7 @@ public function get_registration_args(): array {
107
107
/**
108
108
* Checks if a given request has access to store URL Metrics.
109
109
*
110
- * @since n.e.x.t
110
+ * @since 1.0.0
111
111
* @access private
112
112
*
113
113
* @return true|WP_Error True if the request has permission, WP_Error object otherwise.
@@ -132,7 +132,7 @@ public function store_permissions_check() {
132
132
* not account for the URL port (although there is a to-do comment committed in core to address this). Additionally,
133
133
* the `is_allowed_http_origin()` function in core for some reason returns a string rather than a boolean.
134
134
*
135
- * @since n.e.x.t
135
+ * @since 1.0.0
136
136
* @see is_allowed_http_origin()
137
137
* @access private
138
138
*
@@ -148,7 +148,7 @@ protected static function is_allowed_http_origin( string $origin ): bool {
148
148
/**
149
149
* Handles the REST API request to store a URL Metric.
150
150
*
151
- * @since n.e.x.t
151
+ * @since 1.0.0
152
152
* @access private
153
153
*
154
154
* @phpstan-param WP_REST_Request<array<string, mixed>> $request
@@ -311,7 +311,7 @@ public function handle_rest_request( WP_REST_Request $request ) {
311
311
/**
312
312
* Decompresses the REST API request body for the URL Metrics endpoint.
313
313
*
314
- * @since n.e.x.t
314
+ * @since 1.0.0
315
315
* @access private
316
316
*
317
317
* @phpstan-param WP_REST_Request<array<string, mixed>> $request
0 commit comments