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

Yoast / wordpress-seo / 0ea1e48ee5d5e9310a98a7f9899bab8314895a25

25 Jun 2025 12:25PM UTC coverage: 53.652%. First build
0ea1e48ee5d5e9310a98a7f9899bab8314895a25

push

github

leonidasmi
Merge branch 'trunk' into feature/llms-txt-phase-2

8218 of 14299 branches covered (57.47%)

Branch coverage included in aggregate %.

16 of 88 new or added lines in 9 files covered. (18.18%)

30346 of 57579 relevant lines covered (52.7%)

41467.56 hits per line

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

0.0
/src/introductions/application/google-docs-addon-upsell.php
1
<?php
2

3

4
namespace Yoast\WP\SEO\Introductions\Application;
5

6
use Yoast\WP\SEO\Helpers\Product_Helper;
7
use Yoast\WP\SEO\Helpers\User_Helper;
8
use Yoast\WP\SEO\Introductions\Domain\Introduction_Interface;
9

10
/**
11
 * Represents the introduction for the Google Docs Addon feature.
12
 */
13
class Google_Docs_Addon_Upsell implements Introduction_Interface {
14

15
        use User_Allowed_Trait;
16

17
        public const ID = 'google-docs-addon-upsell';
18

19
        /**
20
         * Holds the user helper.
21
         *
22
         * @var User_Helper
23
         */
24
        private $user_helper;
25

26
        /**
27
         * Holds the product helper.
28
         *
29
         * @var Product_Helper
30
         */
31
        private $product_helper;
32

33
        /**
34
         * Constructs the introduction.
35
         *
36
         * @param User_Helper    $user_helper    The user helper.
37
         * @param Product_Helper $product_helper The product helper.
38
         */
NEW
39
        public function __construct( User_Helper $user_helper, Product_Helper $product_helper ) {
×
NEW
40
                $this->user_helper    = $user_helper;
×
NEW
41
                $this->product_helper = $product_helper;
×
42
        }
43

44
        /**
45
         * Returns the ID.
46
         *
47
         * @return string The ID.
48
         */
NEW
49
        public function get_id() {
×
NEW
50
                return self::ID;
×
51
        }
52

53
        /**
54
         * Returns the name of the introduction.
55
         *
56
         * @return string The name.
57
         */
NEW
58
        public function get_name() {
×
NEW
59
                \_deprecated_function( __METHOD__, 'Yoast SEO Premium 21.6', 'Please use get_id() instead' );
×
60

NEW
61
                return self::ID;
×
62
        }
63

64
        /**
65
         * Returns the requested pagination priority. Lower means earlier.
66
         *
67
         * @return int The priority.
68
         */
NEW
69
        public function get_priority() {
×
NEW
70
                return 10;
×
71
        }
72

73
        /**
74
         * Returns whether this introduction should show.
75
         * We no longer show this introduction, so we always return false.
76
         *
77
         * @return bool Whether this introduction should show.
78
         */
NEW
79
        public function should_show() {
×
NEW
80
                return true;
×
81
        }
82
}
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