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

Yoast / wordpress-seo / 5025ae743cb0167825f79d2c424b6d3ca2e3a8fa

16 Dec 2025 11:17AM UTC coverage: 53.04%. First build
5025ae743cb0167825f79d2c424b6d3ca2e3a8fa

push

github

leonidasmi
Merge branch 'release/26.7' of github.com:Yoast/wordpress-seo into trunk

8706 of 16079 branches covered (54.15%)

Branch coverage included in aggregate %.

0 of 7 new or added lines in 3 files covered. (0.0%)

32421 of 61461 relevant lines covered (52.75%)

46914.88 hits per line

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

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

5
/**
6
 * Abstract class for a task.
7
 */
8
abstract class Abstract_Task implements Task_Interface {
9

10
        /**
11
         * The ID of the task.
12
         *
13
         * @var string
14
         */
15
        protected $id;
16

17
        /**
18
         * The priority of the task.
19
         *
20
         * @var string
21
         */
22
        protected $priority;
23

24
        /**
25
         * The duration of the task.
26
         *
27
         * @var int
28
         */
29
        protected $duration;
30

31
        /**
32
         * Returns the task ID.
33
         *
34
         * @return string
35
         */
36
        public function get_id(): string {
×
37
                return $this->id;
×
38
        }
39

40
        /**
41
         * Returns the task's priority.
42
         *
43
         * @return string
44
         */
45
        public function get_priority(): string {
×
46
                return $this->priority;
×
47
        }
48

49
        /**
50
         * Returns the task's duration.
51
         *
52
         * @return int
53
         */
54
        public function get_duration(): int {
×
55
                return $this->duration;
×
56
        }
57

58
        /**
59
         * Returns the task's badge.
60
         *
61
         * @return string|null
62
         */
63
        public function get_badge(): ?string {
×
64
                return null;
×
65
        }
66

67
        /**
68
         * Returns an array representation of the task data.
69
         *
70
         * @return array<string, string|bool> Returns in an array format.
71
         */
72
        public function to_array(): array {
×
73
                $data = [
×
74
                        'id'           => $this->get_id(),
×
75
                        'duration'     => $this->get_duration(),
×
76
                        'priority'     => $this->get_priority(),
×
77
                        'badge'        => $this->get_badge(),
×
78
                        'isCompleted'  => $this->get_is_completed(),
×
79
                        'callToAction' => $this->get_call_to_action()->to_array(),
×
80
                ];
×
81

82
                return \array_merge( $data, $this->get_copy_set()->to_array() );
×
83
        }
84

85
        /**
86
         * Returns whether the task is valid.
87
         *
88
         * @return bool
89
         */
NEW
90
        public function is_valid(): bool {
×
NEW
91
                return true;
×
92
        }
93
}
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