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

Yoast / wordpress-seo / ad4f5d1decd5ba72026241af5b5f9afbe1d92e93

04 Dec 2025 12:38PM UTC coverage: 52.391%. First build
ad4f5d1decd5ba72026241af5b5f9afbe1d92e93

push

github

thijsoo
Merge branch 'trunk' of github.com:Yoast/wordpress-seo into feature/schema_aggregator

# Conflicts:
#	admin/tracking/class-tracking-settings-data.php
#	inc/options/class-wpseo-option-wpseo.php

8706 of 16076 branches covered (54.16%)

Branch coverage included in aggregate %.

158 of 860 new or added lines in 78 files covered. (18.37%)

32437 of 62454 relevant lines covered (51.94%)

46168.94 hits per line

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

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

5
/**
6
 * This class describes a set of copy.
7
 */
8
class Copy_Set {
9

10
        /**
11
         * The title copy.
12
         *
13
         * @var string
14
         */
15
        private $title;
16

17
        /**
18
         * The why copy.
19
         *
20
         * @var string
21
         */
22
        private $why;
23

24
        /**
25
         * The how copy.
26
         *
27
         * @var string
28
         */
29
        private $how;
30

31
        /**
32
         * The constructor.
33
         *
34
         * @param string $title The title copy.
35
         * @param string $why   The why copy.
36
         * @param string $how   The how copy.
37
         */
NEW
38
        public function __construct(
×
39
                string $title,
40
                string $why,
41
                ?string $how = null
42
        ) {
NEW
43
                $this->title = $title;
×
NEW
44
                $this->why   = $why;
×
NEW
45
                $this->how   = $how;
×
46
        }
47

48
        /**
49
         * Returns an array representation of the copy set data.
50
         *
51
         * @return array<string, string|bool> Returns in an array format.
52
         */
NEW
53
        public function to_array(): array {
×
NEW
54
                return [
×
NEW
55
                        'title' => $this->title,
×
NEW
56
                        'why'   => $this->why,
×
NEW
57
                        'how'   => $this->how,
×
NEW
58
                ];
×
59
        }
60
}
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