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

Yoast / wordpress-seo / c07d9fe4383d595266c3387cf13f444058c9bcf9

05 Feb 2026 10:24AM UTC coverage: 53.531% (+0.002%) from 53.529%
c07d9fe4383d595266c3387cf13f444058c9bcf9

push

github

web-flow
Merge pull request #22935 from Yoast/1048-task-list-unify-hows-and-whys-into-a-single-about-section

Unify the whys and hows of a task into a single about section

8890 of 16431 branches covered (54.11%)

Branch coverage included in aggregate %.

21 of 25 new or added lines in 9 files covered. (84.0%)

2 existing lines in 2 files now uncovered.

33209 of 62213 relevant lines covered (53.38%)

46350.74 hits per line

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

50.0
/src/task-list/domain/components/copy-set.php
1
<?php
2

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

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

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

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

25
        /**
26
         * The constructor.
27
         *
28
         * @param string $title The title copy.
29
         * @param string $about The about copy. Can contain HTML markup like <strong> and <p>.
30
         */
31
        public function __construct(
×
32
                string $title,
33
                string $about = ''
34
        ) {
35
                $this->title = $title;
×
NEW
36
                $this->about = $about;
×
37
        }
38

39
        /**
40
         * Returns the copy set's about.
41
         *
42
         * @return string
43
         */
NEW
44
        public function get_about(): string {
×
NEW
45
                return $this->about;
×
46
        }
47

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