File ManagerCurrent Directory: wp-content/plugins/wordpress-seo/src/dashboard/infrastructure/endpointsLinux appserver-0d5e4f1e-php-cc8da225320a42ba9b7d66cba40b1f03 6.6.123+ #1 SMP PREEMPT_DYNAMIC Wed Mar 11 09:04:28 UTC 2026 x86_64Edit File: readability-scores-endpoint.php <?php // phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure. namespace Yoast\WP\SEO\Dashboard\Infrastructure\Endpoints; use Exception; use Yoast\WP\SEO\Dashboard\Domain\Endpoint\Endpoint_Interface; use Yoast\WP\SEO\Dashboard\User_Interface\Scores\Abstract_Scores_Route; use Yoast\WP\SEO\Dashboard\User_Interface\Scores\Readability_Scores_Route; /** * Represents the readability scores endpoint. */ class Readability_Scores_Endpoint implements Endpoint_Interface { /** * Gets the name. * * @return string */ public function get_name(): string { return 'readabilityScores'; } /** * Gets the namespace. * * @return string */ public function get_namespace(): string { return Abstract_Scores_Route::ROUTE_NAMESPACE; } /** * Gets the route. * * @throws Exception If the route prefix is not overwritten this throws. * @return string */ public function get_route(): string { return Readability_Scores_Route::get_route_prefix(); } /** * Gets the URL. * * @return string */ public function get_url(): string { return \rest_url( $this->get_namespace() . $this->get_route() ); } } Upload File Directory Listing NameTypeSizeActions.. (Parent Directory)Dirreadability-scores-endpoint.phpFile1.15 KB Rename | Delete | Editseo-scores-endpoint.phpFile1.11 KB Rename | Delete | Edit