File tree Expand file tree Collapse file tree 9 files changed +120
-73
lines changed Expand file tree Collapse file tree 9 files changed +120
-73
lines changed Original file line number Diff line number Diff line change 12
12
}
13
13
],
14
14
"require" : {
15
- "infinityloop-dev/graphpinator" : " ^1.0-rc10+3 " ,
15
+ "infinityloop-dev/graphpinator" : " ^1.0-rc12 " ,
16
16
"infinityloop-dev/utils" : " ^2.1.2" ,
17
17
"nette/utils" : " ^3.2"
18
18
},
Original file line number Diff line number Diff line change @@ -14,15 +14,15 @@ public function validateFieldUsage(
14
14
\Graphpinator \Value \ArgumentValueSet $ arguments ,
15
15
) : bool
16
16
{
17
- return $ field ->getType ()->getNamedType () instanceof \Graphpinator \Type \Scalar \FloatType;
17
+ return $ field ->getType ()->getNamedType () instanceof \Graphpinator \Type \Spec \FloatType;
18
18
}
19
19
20
20
public function validateArgumentUsage (
21
21
\Graphpinator \Argument \Argument $ argument ,
22
22
\Graphpinator \Value \ArgumentValueSet $ arguments ,
23
23
): bool
24
24
{
25
- return $ argument ->getType ()->getNamedType () instanceof \Graphpinator \Type \Scalar \FloatType;
25
+ return $ argument ->getType ()->getNamedType () instanceof \Graphpinator \Type \Spec \FloatType;
26
26
}
27
27
28
28
protected function getFieldDefinition () : \Graphpinator \Argument \ArgumentSet
Original file line number Diff line number Diff line change @@ -14,15 +14,15 @@ public function validateFieldUsage(
14
14
\Graphpinator \Value \ArgumentValueSet $ arguments ,
15
15
) : bool
16
16
{
17
- return $ field ->getType ()->getNamedType () instanceof \Graphpinator \Type \Scalar \IntType;
17
+ return $ field ->getType ()->getNamedType () instanceof \Graphpinator \Type \Spec \IntType;
18
18
}
19
19
20
20
public function validateArgumentUsage (
21
21
\Graphpinator \Argument \Argument $ argument ,
22
22
\Graphpinator \Value \ArgumentValueSet $ arguments ,
23
23
): bool
24
24
{
25
- return $ argument ->getType ()->getNamedType () instanceof \Graphpinator \Type \Scalar \IntType;
25
+ return $ argument ->getType ()->getNamedType () instanceof \Graphpinator \Type \Spec \IntType;
26
26
}
27
27
28
28
protected function getFieldDefinition () : \Graphpinator \Argument \ArgumentSet
Original file line number Diff line number Diff line change @@ -16,8 +16,8 @@ public function validateFieldUsage(
16
16
{
17
17
$ namedType = $ field ->getType ()->getNamedType ();
18
18
19
- return $ namedType instanceof \Graphpinator \Type \Scalar \StringType
20
- || $ namedType instanceof \Graphpinator \Type \Scalar \IdType;
19
+ return $ namedType instanceof \Graphpinator \Type \Spec \StringType
20
+ || $ namedType instanceof \Graphpinator \Type \Spec \IdType;
21
21
}
22
22
23
23
public function validateArgumentUsage (
@@ -27,8 +27,8 @@ public function validateArgumentUsage(
27
27
{
28
28
$ namedType = $ argument ->getType ()->getNamedType ();
29
29
30
- return $ namedType instanceof \Graphpinator \Type \Scalar \StringType
31
- || $ namedType instanceof \Graphpinator \Type \Scalar \IdType;
30
+ return $ namedType instanceof \Graphpinator \Type \Spec \StringType
31
+ || $ namedType instanceof \Graphpinator \Type \Spec \IdType;
32
32
}
33
33
34
34
protected function getFieldDefinition () : \Graphpinator \Argument \ArgumentSet
Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ public function __construct(
86
86
private array $ directiveArgs ,
87
87
)
88
88
{
89
- parent ::__construct (new \Graphpinator \Utils \InterfaceSet ([$ interface ]));
89
+ parent ::__construct (new \Graphpinator \Type \InterfaceSet ([$ interface ]));
90
90
}
91
91
92
92
protected function getFieldDefinition () : \Graphpinator \Field \FieldSet
Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ public function __construct(
86
86
private array $ directiveArgs ,
87
87
)
88
88
{
89
- parent ::__construct (new \Graphpinator \Utils \InterfaceSet ([$ interface ]));
89
+ parent ::__construct (new \Graphpinator \Type \InterfaceSet ([$ interface ]));
90
90
}
91
91
92
92
protected function getFieldDefinition () : \Graphpinator \Field \FieldSet
Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ public function __construct(
86
86
private array $ directiveArgs ,
87
87
)
88
88
{
89
- parent ::__construct (new \Graphpinator \Utils \InterfaceSet ([$ interface ]));
89
+ parent ::__construct (new \Graphpinator \Type \InterfaceSet ([$ interface ]));
90
90
}
91
91
92
92
protected function getFieldDefinition () : \Graphpinator \Field \FieldSet
@@ -186,7 +186,7 @@ public function __construct(
186
186
private array $ directiveArgs ,
187
187
)
188
188
{
189
- parent ::__construct (new \Graphpinator \Utils \InterfaceSet ([$ interface ]));
189
+ parent ::__construct (new \Graphpinator \Type \InterfaceSet ([$ interface ]));
190
190
}
191
191
192
192
protected function getFieldDefinition () : \Graphpinator \Field \FieldSet
Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ public function __construct(
93
93
private array $ directiveArgs ,
94
94
)
95
95
{
96
- parent ::__construct (new \Graphpinator \Utils \InterfaceSet ([$ interface ]));
96
+ parent ::__construct (new \Graphpinator \Type \InterfaceSet ([$ interface ]));
97
97
}
98
98
99
99
protected function getFieldDefinition () : \Graphpinator \Field \FieldSet
You can’t perform that action at this time.
0 commit comments