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

Yoast / wordpress-seo / 8b68833d79d2bdbef195747ad4673cf27e721c38

21 Jan 2025 03:29PM UTC coverage: 51.12%. First build
8b68833d79d2bdbef195747ad4673cf27e721c38

Pull #21965

github

web-flow
Merge e2b3ef330 into 0031b1b85
Pull Request #21965: First run at a setup

0 of 122 new or added lines in 12 files covered. (0.0%)

16657 of 32584 relevant lines covered (51.12%)

3.96 hits per line

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

0.0
/src/dashboard/domain/data-provider/data-container.php
1
<?php
2
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
3
namespace Yoast\WP\SEO\Dashboard\Domain\Data_Provider;
4

5
/**
6
 * The data container.
7
 */
8
class Data_Container {
9

10
        /**
11
         * All the search data points.
12
         *
13
         * @var array<Data_Interface> $data_container
14
         */
15
        private $data_container;
16

17
        /**
18
         * The constructor
19
         */
NEW
20
        public function __construct() {
×
NEW
21
                $this->data_container = [];
×
22
        }
23

24
        /**
25
         * Method to add data.
26
         *
27
         * @param Data_Interface $data The data.
28
         *
29
         * @return void
30
         */
NEW
31
        public function add_data( Data_Interface $data ) {
×
NEW
32
                $this->data_container[] = $data;
×
33
        }
34

35
        /**
36
         * Converts the list to an array.
37
         *
38
         * @return array<string,string> The array of endpoints.
39
         */
NEW
40
        public function to_array(): array {
×
NEW
41
                $result = [];
×
NEW
42
                foreach ( $this->data_container as $data ) {
×
NEW
43
                        $result[] = $data->to_array();
×
44
                }
45

NEW
46
                return $result;
×
47
        }
48
}
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