• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Yoast / wordpress-seo / 8218b111533b92ec47f94130a94bcd0102263a45

01 Dec 2025 09:48AM UTC coverage: 53.092%. First build
8218b111533b92ec47f94130a94bcd0102263a45

push

github

web-flow
Merge pull request #22759 from Yoast/feature/task-list

Feature/task list

8697 of 16050 branches covered (54.19%)

Branch coverage included in aggregate %.

98 of 605 new or added lines in 51 files covered. (16.2%)

32413 of 61381 relevant lines covered (52.81%)

46976.02 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/task-list/domain/endpoint/endpoint-list.php
1
<?php
2
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
3
namespace Yoast\WP\SEO\Task_List\Domain\Endpoint;
4

5
/**
6
 * List of endpoints.
7
 */
8
class Endpoint_List {
9

10
        /**
11
         * Holds the endpoints.
12
         *
13
         * @var array<Endpoint_Interface>
14
         */
15
        private $endpoints = [];
16

17
        /**
18
         * Adds an endpoint to the list.
19
         *
20
         * @param Endpoint_Interface $endpoint An endpoint.
21
         *
22
         * @return void
23
         */
NEW
24
        public function add_endpoint( Endpoint_Interface $endpoint ): void {
×
NEW
25
                $this->endpoints[] = $endpoint;
×
26
        }
27

28
        /**
29
         * Converts the list to an array.
30
         *
31
         * @return array<string, string> The array of endpoints.
32
         */
NEW
33
        public function to_array(): array {
×
NEW
34
                $result = [];
×
NEW
35
                foreach ( $this->endpoints as $endpoint ) {
×
NEW
36
                        $result[ $endpoint->get_name() ] = $endpoint->get_url();
×
37
                }
38

NEW
39
                return $result;
×
40
        }
41
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc