• 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/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

© 2025 Coveralls, Inc