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

Yoast / wordpress-seo / a8a215def53aa38d83991bd5baaddd3337e43c4b

07 Nov 2025 10:08AM UTC coverage: 49.286%. First build
a8a215def53aa38d83991bd5baaddd3337e43c4b

Pull #22691

github

web-flow
Merge aeebaf311 into b63825c5c
Pull Request #22691: Initialize the backend work needed for the tasklist.

7 of 184 new or added lines in 13 files covered. (3.8%)

17497 of 35501 relevant lines covered (49.29%)

3.89 hits per line

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

0.0
/src/task-list/domain/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;
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
         */
NEW
36
        public function get_id(): string {
×
NEW
37
                return $this->id;
×
38
        }
39

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

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

58
        /**
59
         * Returns an array representation of the task config data.
60
         *
61
         * @return array<string, string|bool> Returns in an array format.
62
         */
NEW
63
        public function config_to_array(): array {
×
NEW
64
                return [
×
NEW
65
                        'id'       => $this->id,
×
NEW
66
                        'duration' => $this->duration,
×
NEW
67
                        'priority' => $this->priority,
×
NEW
68
                        'link'     => $this->get_link(),
×
NEW
69
                ];
×
70
        }
71
}
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