File ManagerCurrent Directory: wp-content/plugins/wordpress-seo/src/dashboard/domain/endpointLinux appserver-0d5e4f1e-php-cc8da225320a42ba9b7d66cba40b1f03 6.6.123+ #1 SMP PREEMPT_DYNAMIC Wed Mar 11 09:04:28 UTC 2026 x86_64Edit File: endpoint-list.php <?php // phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure. namespace Yoast\WP\SEO\Dashboard\Domain\Endpoint; /** * List of endpoints. */ class Endpoint_List { /** * Holds the endpoints. * * @var array<Endpoint_Interface> $endpoints */ private $endpoints = []; /** * Adds an endpoint to the list. * * @param Endpoint_Interface $endpoint An endpoint. * * @return void */ public function add_endpoint( Endpoint_Interface $endpoint ): void { $this->endpoints[] = $endpoint; } /** * Converts the list to an array. * * @return array<string,string> The array of endpoints. */ public function to_array(): array { $result = []; foreach ( $this->endpoints as $endpoint ) { $result[ $endpoint->get_name() ] = $endpoint->get_url(); } return $result; } } Upload File Directory Listing NameTypeSizeActions.. (Parent Directory)Direndpoint-interface.phpFile558.00 B Rename | Delete | Editendpoint-list.phpFile843.00 B Rename | Delete | Edit