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

Yoast / wordpress-seo / e57e01309ec9fc3afc714e6ce0fd243e7b6d1f90

27 May 2025 12:40PM UTC coverage: 45.733%. First build
e57e01309ec9fc3afc714e6ce0fd243e7b6d1f90

Pull #22275

github

web-flow
Merge f0a8d33c9 into 5f64dc203
Pull Request #22275: Move and refactor ai generator rest endpoints

0 of 392 new or added lines in 26 files covered. (0.0%)

15548 of 33997 relevant lines covered (45.73%)

3.64 hits per line

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

0.0
/src/ai-consent/infrastructure/endpoints/consent-endpoint.php
1
<?php
2
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
3
namespace Yoast\WP\SEO\AI_Consent\Infrastructure\Endpoints;
4

5
use Exception;
6
use Yoast\WP\SEO\AI_Consent\Domain\Endpoint\Endpoint_Interface;
7
use Yoast\WP\SEO\AI_Consent\User_Interface\Consent_Route;
8

9
/**
10
 * Represents the setup steps tracking endpoint.
11
 */
12
class Consent_Endpoint implements Endpoint_Interface {
13

14
        /**
15
         * Gets the name.
16
         *
17
         * @return string
18
         */
NEW
19
        public function get_name(): string {
×
NEW
20
                return 'consent';
×
21
        }
22

23
        /**
24
         * Gets the namespace.
25
         *
26
         * @return string
27
         */
NEW
28
        public function get_namespace(): string {
×
NEW
29
                return Consent_Route::ROUTE_NAMESPACE;
×
30
        }
31

32
        /**
33
         * Gets the route.
34
         *
35
         * @throws Exception If the route prefix is not overwritten this throws.
36
         * @return string
37
         */
NEW
38
        public function get_route(): string {
×
NEW
39
                return Consent_Route::ROUTE_PREFIX;
×
40
        }
41

42
        /**
43
         * Gets the URL.
44
         *
45
         * @return string
46
         */
NEW
47
        public function get_url(): string {
×
NEW
48
                return \rest_url( $this->get_namespace() . $this->get_route() );
×
49
        }
50
}
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

© 2025 Coveralls, Inc