| @@ -14,9 +14,9 @@ | ||
| 14 | 14 | * The namespace of the REST route. |
| 15 | 15 | * |
| 16 | 16 | * @var string |
| 17 | 17 | */ |
| 18 | - const REST_NAMESPACE = 'yoast/v1'; | |
| 18 | + public const REST_NAMESPACE = 'yoast/v1'; | |
| 19 | 19 | |
| 20 | 20 | /** |
| 21 | 21 | * The route of the statistics endpoint. |
| 22 | 22 | * |
| @@ -21,9 +21,9 @@ | ||
| 21 | 21 | * The route of the statistics endpoint. |
| 22 | 22 | * |
| 23 | 23 | * @var string |
| 24 | 24 | */ |
| 25 | - const ENDPOINT_RETRIEVE = 'statistics'; | |
| 25 | + public const ENDPOINT_RETRIEVE = 'statistics'; | |
| 26 | 26 | |
| 27 | 27 | /** |
| 28 | 28 | * The name of the capability needed to retrieve data using the endpoints. |
| 29 | 29 | * |
| @@ -28,9 +28,9 @@ | ||
| 28 | 28 | * The name of the capability needed to retrieve data using the endpoints. |
| 29 | 29 | * |
| 30 | 30 | * @var string |
| 31 | 31 | */ |
| 32 | - const CAPABILITY_RETRIEVE = 'read'; | |
| 32 | + public const CAPABILITY_RETRIEVE = 'read'; | |
| 33 | 33 | |
| 34 | 34 | /** |
| 35 | 35 | * Service to use. |
| 36 | 36 | * |
| @@ -48,8 +48,10 @@ | ||
| 48 | 48 | } |
| 49 | 49 | |
| 50 | 50 | /** |
| 51 | 51 | * Registers the REST routes that are available on the endpoint. |
| 52 | + * | |
| 53 | + * @return void | |
| 52 | 54 | */ |
| 53 | 55 | public function register() { |
| 54 | 56 | // Register fetch config. |
| 55 | 57 | $route_args = [ |