File tree 1 file changed +0
-24
lines changed
1 file changed +0
-24
lines changed Original file line number Diff line number Diff line change 3
3
declare (strict_types = 1 );
4
4
namespace Rebing \GraphQL \Support ;
5
5
6
- use GraphQL \Type \Definition \EnumType ;
7
6
use GraphQL \Type \Definition \FieldDefinition ;
8
- use GraphQL \Type \Definition \InputObjectType ;
9
7
use GraphQL \Type \Definition \ObjectType ;
10
8
use GraphQL \Type \Definition \Type as GraphqlType ;
11
9
use Illuminate \Support \Str ;
17
15
abstract class Type implements TypeConvertible
18
16
{
19
17
protected $ attributes = [];
20
- /**
21
- * Set to `true` in your type when it should reflect an InputObject.
22
- * @var bool
23
- * @deprecated Use InputType instead
24
- * @see InputType
25
- */
26
- protected $ inputObject = false ;
27
- /**
28
- * Set to `true` in your type when it should reflect an Enum.
29
- * @var bool
30
- * @deprecated Use EnumType instead
31
- * @see EnumType
32
- */
33
- protected $ enumObject = false ;
34
18
35
19
public function attributes (): array
36
20
{
@@ -138,14 +122,6 @@ public function toArray(): array
138
122
139
123
public function toType (): GraphqlType
140
124
{
141
- if ($ this ->inputObject ) {
142
- return new InputObjectType ($ this ->toArray ());
143
- }
144
-
145
- if ($ this ->enumObject ) {
146
- return new EnumType ($ this ->toArray ());
147
- }
148
-
149
125
return new ObjectType ($ this ->toArray ());
150
126
}
151
127
You can’t perform that action at this time.
0 commit comments