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

Yoast / wordpress-seo / 6987097851

25 Nov 2023 04:49AM UTC coverage: 49.206% (-0.1%) from 49.302%
6987097851

push

github

web-flow
Merge pull request #20878 from Yoast/JRF/ghactions-minor-tweak

GH Actions: update a few links in inline comments

15305 of 31104 relevant lines covered (49.21%)

4.03 hits per line

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

75.0
/src/analytics/domain/missing-indexable-count.php
1
<?php
2

3
namespace Yoast\WP\SEO\Analytics\Domain;
4

5
/**
6
 * Domain object that holds indexable count information.
7
 */
8
class Missing_Indexable_Count {
9

10
        /**
11
         * The indexable type that is represented by this.
12
         *
13
         * @var string
14
         */
15
        private $indexable_type;
16

17
        /**
18
         * The amount of missing indexables.
19
         *
20
         * @var int
21
         */
22
        private $count;
23

24
        /**
25
         * The constructor.
26
         *
27
         * @param string $indexable_type The indexable type that is represented by this.
28
         * @param int    $count          The amount of missing indexables.
29
         */
30
        public function __construct( $indexable_type, $count ) {
×
31
                $this->indexable_type = $indexable_type;
×
32
                $this->count          = $count;
×
33
        }
34

35
        /**
36
         * Returns an array representation of the data.
37
         *
38
         * @return array Returns both values in an array format.
39
         */
40
        public function to_array() {
2✔
41
                return [
1✔
42
                        'indexable_type' => $this->get_indexable_type(),
2✔
43
                        'count'          => $this->get_count(),
2✔
44
                ];
1✔
45
        }
46

47
        /**
48
         * Gets the indexable type.
49
         *
50
         * @return string Returns the indexable type.
51
         */
52
        public function get_indexable_type() {
2✔
53
                return $this->indexable_type;
2✔
54
        }
55

56
        /**
57
         * Gets the count.
58
         *
59
         * @return int Returns the amount of missing indexables.
60
         */
61
        public function get_count() {
2✔
62
                return $this->count;
2✔
63
        }
64
}
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