File ManagerCurrent Directory: wp-content/plugins/wordpress-seo/src/dashboard/application/endpointsLinux appserver-0d5e4f1e-php-cc8da225320a42ba9b7d66cba40b1f03 6.6.123+ #1 SMP PREEMPT_DYNAMIC Wed Mar 11 09:04:28 UTC 2026 x86_64Edit File: endpoints-repository.php <?php // phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure. namespace Yoast\WP\SEO\Dashboard\Application\Endpoints; use Yoast\WP\SEO\Dashboard\Domain\Endpoint\Endpoint_Interface; use Yoast\WP\SEO\Dashboard\Domain\Endpoint\Endpoint_List; /** * Repository for endpoints. */ class Endpoints_Repository { /** * Holds the endpoints. * * @var array<Endpoint_Interface> */ private $endpoints; /** * Constructs the repository. * * @param Endpoint_Interface ...$endpoints The endpoints to add to the repository. */ public function __construct( Endpoint_Interface ...$endpoints ) { $this->endpoints = $endpoints; } /** * Creates a list with all endpoints. * * @return Endpoint_List The list with all endpoints. */ public function get_all_endpoints(): Endpoint_List { $list = new Endpoint_List(); foreach ( $this->endpoints as $endpoint ) { $list->add_endpoint( $endpoint ); } return $list; } } Upload File Directory Listing NameTypeSizeActions.. (Parent Directory)Direndpoints-repository.phpFile981.00 B Rename | Delete | Edit