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

AxeWP / wp-graphql-headless-login / #72

07 Jun 2025 09:08AM UTC coverage: 82.559% (-0.4%) from 82.929%
#72

push

php-coveralls

web-flow
Merge a58b52098 into fe4ece4d0

121 of 163 new or added lines in 26 files covered. (74.23%)

10 existing lines in 8 files now uncovered.

2291 of 2775 relevant lines covered (82.56%)

24.03 hits per line

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

97.22
/src/Type/WPObject/Client.php
1
<?php
2
/**
3
 * The Login Client GraphQL object.
4
 *
5
 * @package WPGraphQL\Login\Type\WPObject
6
 */
7

8
declare( strict_types = 1 );
9

10
namespace WPGraphQL\Login\Type\WPObject;
11

12
use WPGraphQL\Login\Type\Enum\ProviderEnum;
13
use WPGraphQL\Login\Type\WPInterface\ClientOptions;
14
use WPGraphQL\Login\Type\WPInterface\LoginOptions;
15
use WPGraphQL\Login\Vendor\AxeWP\GraphQL\Abstracts\ObjectType;
16

17
/**
18
 * Class - Client
19
 */
20
class Client extends ObjectType {
21
        /**
22
         * {@inheritDoc}
23
         */
24
        public static function type_name(): string {
25
                return 'LoginClient';
67✔
26
        }
27

28
        /**
29
         * {@inheritDoc}
30
         */
31
        public static function get_description(): string {
UNCOV
32
                return __( 'The Headless Login client.', 'wp-graphql-headless-login' );
×
33
        }
34

35
        /**
36
         * {@inheritDoc}
37
         */
38
        public static function get_fields(): array {
39
                return [
67✔
40
                        'authorizationUrl' => [
67✔
41
                                'type'        => 'String',
67✔
42
                                'description' => static fn () => __( 'The authorization URL.', 'wp-graphql-headless-login' ),
67✔
43
                        ],
67✔
44
                        'clientId'         => [
67✔
45
                                'type'        => 'ID',
67✔
46
                                'description' => static fn () => __( 'The client ID.', 'wp-graphql-headless-login' ),
67✔
47
                        ],
67✔
48
                        'clientOptions'    => [
67✔
49
                                'type'        => ClientOptions::get_type_name(),
67✔
50
                                'description' => static fn () => __( 'The client options.', 'wp-graphql-headless-login' ),
67✔
51
                        ],
67✔
52
                        'isEnabled'        => [
67✔
53
                                'type'        => 'Boolean',
67✔
54
                                'description' => static fn () => __( 'Whether the client is enabled.', 'wp-graphql-headless-login' ),
67✔
55
                        ],
67✔
56
                        'loginOptions'     => [
67✔
57
                                'type'        => LoginOptions::get_type_name(),
67✔
58
                                'description' => static fn () => __( 'The login options.', 'wp-graphql-headless-login' ),
67✔
59
                        ],
67✔
60
                        'name'             => [
67✔
61
                                'type'        => 'String',
67✔
62
                                'description' => static fn () => __( 'The client name.', 'wp-graphql-headless-login' ),
67✔
63
                        ],
67✔
64
                        'order'            => [
67✔
65
                                'type'        => 'Int',
67✔
66
                                'description' => static fn () => __( 'A field used for ordering clients.', 'wp-graphql-headless-login' ),
67✔
67
                        ],
67✔
68
                        'provider'         => [
67✔
69
                                'type'        => ProviderEnum::get_type_name(),
67✔
70
                                'description' => static fn () => __( 'The provider type.', 'wp-graphql-headless-login' ),
67✔
71
                        ],
67✔
72
                ];
67✔
73
        }
74
}
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