• 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/application/endpoints/endpoints-repository.php
1
<?php
2
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
3
namespace Yoast\WP\SEO\Task_List\Application\Endpoints;
4

5
use Yoast\WP\SEO\Task_List\Domain\Endpoint\Endpoint_Interface;
6
use Yoast\WP\SEO\Task_List\Domain\Endpoint\Endpoint_List;
7

8
/**
9
 * Repository for endpoints.
10
 */
11
class Endpoints_Repository {
12

13
        /**
14
         * Holds the endpoints.
15
         *
16
         * @var array<Endpoint_Interface>
17
         */
18
        private $endpoints;
19

20
        /**
21
         * Constructs the repository.
22
         *
23
         * @param Endpoint_Interface ...$endpoints The endpoints to add to the repository.
24
         */
NEW
25
        public function __construct( Endpoint_Interface ...$endpoints ) {
×
NEW
26
                $this->endpoints = $endpoints;
×
27
        }
28

29
        /**
30
         * Creates a list with all endpoints.
31
         *
32
         * @return Endpoint_List The list with all endpoints.
33
         */
NEW
34
        public function get_all_endpoints(): Endpoint_List {
×
NEW
35
                $list = new Endpoint_List();
×
NEW
36
                foreach ( $this->endpoints as $endpoint ) {
×
NEW
37
                        $list->add_endpoint( $endpoint );
×
38
                }
39

NEW
40
                return $list;
×
41
        }
42
}
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

© 2025 Coveralls, Inc