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

Yoast / wordpress-seo / a31c583ae9894144bd1302b094668a9a5aa45e34

27 Nov 2025 02:10PM UTC coverage: 52.628% (-0.7%) from 53.366%
a31c583ae9894144bd1302b094668a9a5aa45e34

Pull #22759

github

web-flow
Merge pull request #22746 from Yoast/846-backend-complete-todos

Improve details of backend
Pull Request #22759: Feature/task list

8318 of 15589 branches covered (53.36%)

Branch coverage included in aggregate %.

10 of 433 new or added lines in 33 files covered. (2.31%)

35 existing lines in 4 files now uncovered.

31819 of 60676 relevant lines covered (52.44%)

47521.37 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