1515
1616/**
1717 * Class - AbstractConnection
18+ *
19+ * @phpstan-type ConnectionConfig array{fromType:string,
20+ * fromFieldName: string,
21+ * resolve: callable,
22+ * oneToOne?: bool,
23+ * toType?: string,
24+ * connectionArgs?: array<string,array{
25+ * type: string|array<string,string | array<string,string>>,
26+ * description: string,
27+ * defaultValue?: mixed
28+ * }>,
29+ * connectionFields?: array<string,array{
30+ * type: string|array<string,string | array<string,string>>,
31+ * description: string,
32+ * args?: array<string,array{
33+ * type: string|array<string,string | array<string,string>>,
34+ * description: string,
35+ * defaultValue?: mixed,
36+ * }>,
37+ * resolve?: callable,
38+ * deprecationReason?: string,
39+ * }>,
40+ * }
1841 */
1942abstract class AbstractConnection implements Hookable, Registrable {
2043 /**
@@ -34,7 +57,7 @@ public static function register_hooks(): void {
3457 /**
3558 * Gets custom connection configuration arguments, such as the resolver, edgeFields, connectionArgs, etc.
3659 *
37- * @return array<string,array<string,mixed> >
60+ * @return array<string,array{type:string|array <string,string|array<string,string>>,description:string,defaultValue?:mixed} >
3861 */
3962 public static function get_connection_args (): array {
4063 return [];
@@ -43,9 +66,9 @@ public static function get_connection_args(): array {
4366 /**
4467 * Returns a filtered array of connection args.
4568 *
46- * @param string[] $filter_by .
69+ * @param ? string[] $filter_by an array of specific connections to return .
4770 *
48- * @return array<string,array<string,mixed> >
71+ * @return array<string,array{type:string|array <string,string|array<string,string>>,description:string,defaultValue?:mixed} >
4972 */
5073 public static function get_filtered_connection_args ( ?array $ filter_by = null ): array {
5174 $ connection_args = static ::get_connection_args ();
0 commit comments