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

Yoast / wordpress-seo / b51d845f89fe206089fb5db4f0ce36d8be6498bf

17 Feb 2026 11:03AM UTC coverage: 53.676%. First build
b51d845f89fe206089fb5db4f0ce36d8be6498bf

push

github

web-flow
Merge pull request #22973 from Yoast/feature/schema_aggregator

Merges `feature/schema-aggregation` to `trunk`

8863 of 16393 branches covered (54.07%)

Branch coverage included in aggregate %.

763 of 1164 new or added lines in 65 files covered. (65.55%)

33819 of 63125 relevant lines covered (53.57%)

47395.23 hits per line

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

71.43
/src/schema-aggregator/application/aggregate-site-schema-command.php
1
<?php
2

3
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
4
namespace Yoast\WP\SEO\Schema_Aggregator\Application;
5

6
use Yoast\WP\SEO\Schema_Aggregator\Domain\Page_Controls;
7

8
/**
9
 * Class that represents the command to aggregate site schema.
10
 */
11
class Aggregate_Site_Schema_Command {
12

13
        /**
14
         * The page controls.
15
         *
16
         * @var Page_Controls
17
         */
18
        private $page_controls;
19

20
        /**
21
         * Whether debug mode is enabled.
22
         *
23
         * @var bool
24
         */
25
        private $is_debug;
26

27
        /**
28
         * The constructor.
29
         *
30
         * @param int    $page      The current page.
31
         * @param int    $per_page  The number of items per page.
32
         * @param string $post_type The post type to aggregate schema for.
33
         * @param bool   $is_debug  Whether debug mode is enabled.
34
         */
35
        public function __construct( int $page, int $per_page, string $post_type, bool $is_debug = false ) {
10✔
36
                $this->page_controls = new Page_Controls( $page, $per_page, $post_type );
10✔
37
                $this->is_debug      = $is_debug;
10✔
38
        }
39

40
        /**
41
         * Gets the page controls.
42
         *
43
         * @return Page_Controls
44
         */
45
        public function get_page_controls(): Page_Controls {
10✔
46
                return $this->page_controls;
10✔
47
        }
48

49
        /**
50
         * Checks if debug mode is enabled.
51
         *
52
         * @return bool
53
         */
NEW
54
        public function is_debug(): bool {
×
NEW
55
                return $this->is_debug;
×
56
        }
57
}
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