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

Yoast / wordpress-seo / 329e7257b699570577e9617a4ea672714686da15

26 Jan 2026 07:52AM UTC coverage: 52.923% (-0.4%) from 53.35%
329e7257b699570577e9617a4ea672714686da15

Pull #22888

github

web-flow
Merge 00d428c6c into ff2f33de1
Pull Request #22888: Add integration tests for analytics adapter

8393 of 15825 branches covered (53.04%)

Branch coverage included in aggregate %.

32383 of 61223 relevant lines covered (52.89%)

47097.05 hits per line

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

60.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 why copy.
20
         *
21
         * @var string
22
         */
23
        private $why;
24

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

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

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