PluginProbe
WPGraphQL / trunk
WPGraphQL vtrunk
2.22.3 2.22.2 2.22.1 2.22.0 2.21.1 2.21.0 2.20.0 2.19.0 2.18.0 2.17.0 2.16.0 2.15.1 2.15.0 2.14.1 2.14.0 2.13.0 2.2.0 2.3.0 2.3.3 2.3.6 2.3.8 2.5.0 2.5.1 2.5.2 2.5.3 All 177 releases
wp-graphql / deprecated / Users.php

Users.php in WPGraphQL trunk, at deprecated/Users.php

50 lines 1.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace WPGraphQL\Connection;
4
5 /**
6 * @todo Remove in 3.0.0
7 * @deprecated 1.13.0
8 * @codeCoverageIgnore
9 */
10 class Users extends \WPGraphQL\Type\Connection\Users {
11 /**
12 * Message that this class will be removed in 3.0.0.
13 *
14 * @param string $function_name
15 */
16 private static function doing_it_wrong( string $function_name ): void {
17 _doing_it_wrong(
18 __METHOD__,
19 sprintf( /* translators: %s is the current class name, %s is the new class name */
20 esc_html__( 'The %1$s class is deprecated and will be removed in the next major version of WPGraphQL. Use %2$s instead.', 'wp-graphql' ),
21 esc_html( self::class ),
22 esc_html( \WPGraphQL\Type\Connection\Users::class )
23 ),
24 '1.13.0'
25 );
26 }
27
28 /**
29 * {@inheritDoc}
30 *
31 * @deprecated 1.13.0
32 */
33 public static function register_connections() {
34 self::doing_it_wrong( __METHOD__ );
35 _deprecated_function( __METHOD__, '1.13.0', '\WPGraphQL\Type\Connection\Users::register_connections' );
36 parent::register_connections();
37 }
38
39 /**
40 * {@inheritDoc}
41 *
42 * @deprecated 1.13.0
43 */
44 public static function get_connection_args() {
45 self::doing_it_wrong( __METHOD__ );
46 _deprecated_function( __METHOD__, '1.13.0', '\WPGraphQL\Type\Connection\Users::get_connection_args' );
47 return parent::get_connection_args();
48 }
49 }
50