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

Yoast / wordpress-seo / 55dec9a111eaff1b7fe75cefc941ff84009561d0

16 Feb 2026 08:03AM UTC coverage: 53.608% (+0.6%) from 52.986%
55dec9a111eaff1b7fe75cefc941ff84009561d0

Pull #22972

github

leonidasmi
Merge trunk
Pull Request #22972: Add tasks about the SEO and readability of recent posts

8934 of 16506 branches covered (54.13%)

Branch coverage included in aggregate %.

391 of 600 new or added lines in 40 files covered. (65.17%)

1 existing line in 1 file now uncovered.

33402 of 62467 relevant lines covered (53.47%)

47894.4 hits per line

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

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

5
/**
6
 * Value object representing content item data for score-based improvement tasks.
7
 */
8
class Content_Item_Score_Data {
9

10
        /**
11
         * The content item ID.
12
         *
13
         * @var int
14
         */
15
        private $content_id;
16

17
        /**
18
         * The content item title.
19
         *
20
         * @var string
21
         */
22
        private $title;
23

24
        /**
25
         * The score of the content item.
26
         *
27
         * @var string
28
         */
29
        private $score;
30

31
        /**
32
         * The content type (post type).
33
         *
34
         * @var string
35
         */
36
        private $content_type;
37

38
        /**
39
         * Constructs the content item data.
40
         *
41
         * @param int    $content_id   The content item ID.
42
         * @param string $title        The content item title.
43
         * @param string $score        The score.
44
         * @param string $content_type The content type.
45
         */
NEW
46
        public function __construct( int $content_id, string $title, string $score, string $content_type ) {
×
NEW
47
                $this->content_id   = $content_id;
×
NEW
48
                $this->title        = $title;
×
NEW
49
                $this->score        = $score;
×
NEW
50
                $this->content_type = $content_type;
×
51
        }
52

53
        /**
54
         * Returns the content item ID.
55
         *
56
         * @return int
57
         */
NEW
58
        public function get_content_id(): int {
×
NEW
59
                return $this->content_id;
×
60
        }
61

62
        /**
63
         * Returns the content item title.
64
         *
65
         * @return string
66
         */
NEW
67
        public function get_title(): string {
×
NEW
68
                return $this->title;
×
69
        }
70

71
        /**
72
         * Returns the score.
73
         *
74
         * @return string
75
         */
NEW
76
        public function get_score(): string {
×
NEW
77
                return $this->score;
×
78
        }
79

80
        /**
81
         * Returns the content type.
82
         *
83
         * @return string
84
         */
NEW
85
        public function get_content_type(): string {
×
NEW
86
                return $this->content_type;
×
87
        }
88
}
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