@@ -11,7 +11,7 @@ abstract class GraphQLType
11
11
protected $ type ;
12
12
protected $ description ;
13
13
14
- public function getName (): \ string
14
+ public function getName (): string
15
15
{
16
16
return $ this ->type ;
17
17
}
@@ -32,92 +32,92 @@ public function getNamedType(): GraphQLType
32
32
return $ this ;
33
33
}
34
34
35
- public function isAbstractType (): \ bool
35
+ public function isAbstractType (): bool
36
36
{
37
37
return $ this instanceof GraphQLAbstractType;
38
38
}
39
39
40
- public function isBooleanType (): \ bool
40
+ public function isBooleanType (): bool
41
41
{
42
42
return $ this instanceof GraphQLBoolean;
43
43
}
44
44
45
- public function isEnumType (): \ bool
45
+ public function isEnumType (): bool
46
46
{
47
47
return $ this instanceof GraphQLEnum;
48
48
}
49
49
50
- public function isFloatType (): \ bool
50
+ public function isFloatType (): bool
51
51
{
52
52
return $ this instanceof GraphQLFloat;
53
53
}
54
54
55
- public function isIDType (): \ bool
55
+ public function isIDType (): bool
56
56
{
57
57
return $ this instanceof GraphQLID;
58
58
}
59
59
60
- public function isInputObjectType (): \ bool
60
+ public function isInputObjectType (): bool
61
61
{
62
62
return $ this instanceof GraphQLInputObjectType;
63
63
}
64
64
65
- public function isIntType (): \ bool
65
+ public function isIntType (): bool
66
66
{
67
67
return $ this instanceof GraphQLInt;
68
68
}
69
69
70
- public function isInterfaceType (): \ bool
70
+ public function isInterfaceType (): bool
71
71
{
72
72
return $ this instanceof GraphQLInterface;
73
73
}
74
74
75
- public function isListType (): \ bool
75
+ public function isListType (): bool
76
76
{
77
77
return $ this instanceof GraphQLList;
78
78
}
79
79
80
- public function isNonNullType (): \ bool
80
+ public function isNonNullType (): bool
81
81
{
82
82
return $ this instanceof GraphQLNonNull;
83
83
}
84
84
85
- public function isObjectType (): \ bool
85
+ public function isObjectType (): bool
86
86
{
87
87
return $ this instanceof GraphQLObjectType and !($ this instanceof GraphQLInputObjectType);
88
88
}
89
89
90
- public function isStringType (): \ bool
90
+ public function isStringType (): bool
91
91
{
92
92
return $ this instanceof GraphQLString;
93
93
}
94
94
95
- public function isUnionType (): \ bool
95
+ public function isUnionType (): bool
96
96
{
97
97
return $ this instanceof GraphQLUnion;
98
98
}
99
99
100
- public function isScalarType (): \ bool
100
+ public function isScalarType (): bool
101
101
{
102
102
return $ this instanceof GraphQLScalarType;
103
103
}
104
104
105
- public function isWrappingType (): \ bool
105
+ public function isWrappingType (): bool
106
106
{
107
107
return ($ this ->isListType () || $ this ->isNonNullType ());
108
108
}
109
109
110
- public function isLeafType (): \ bool
110
+ public function isLeafType (): bool
111
111
{
112
112
return ($ this ->isScalarType () || $ this ->isEnumType ());
113
113
}
114
114
115
- public function isCompositeType (): \ bool
115
+ public function isCompositeType (): bool
116
116
{
117
117
return ($ this ->isObjectType () || $ this ->isInterfaceType () || $ this ->isUnionType ());
118
118
}
119
119
120
- public function isInputType (): \ bool
120
+ public function isInputType (): bool
121
121
{
122
122
return ($ this ->isScalarType () ||
123
123
$ this ->isEnumType () ||
0 commit comments