@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | } |
| 61 | 61 | |
| 62 | 62 | /** |
| 63 | - * @param mixed $name |
|
| 63 | + * @param string $name |
|
| 64 | 64 | */ |
| 65 | 65 | public function setName($name) |
| 66 | 66 | { |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | } |
| 77 | 77 | |
| 78 | 78 | /** |
| 79 | - * @param mixed $model |
|
| 79 | + * @param string $model |
|
| 80 | 80 | */ |
| 81 | 81 | public function setModel($model) |
| 82 | 82 | { |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | } |
| 85 | 85 | |
| 86 | 86 | /** |
| 87 | - * @return Field[]|Query[] |
|
| 87 | + * @return Query[] |
|
| 88 | 88 | */ |
| 89 | 89 | public function getFields() |
| 90 | 90 | { |
@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | } |
| 93 | 93 | |
| 94 | 94 | /** |
| 95 | - * @param Field[]|Query[] $fields |
|
| 95 | + * @param Field[] $fields |
|
| 96 | 96 | */ |
| 97 | 97 | public function setFields($fields) |
| 98 | 98 | { |
@@ -74,7 +74,7 @@ |
||
| 74 | 74 | } |
| 75 | 75 | |
| 76 | 76 | /** |
| 77 | - * @return Field[]|Query[]|FragmentInterface[] |
|
| 77 | + * @return Query[] |
|
| 78 | 78 | */ |
| 79 | 79 | public function getFields() |
| 80 | 80 | { |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | } |
| 29 | 29 | |
| 30 | 30 | /** |
| 31 | - * @return Field[]|Query[] |
|
| 31 | + * @return Field[] |
|
| 32 | 32 | */ |
| 33 | 33 | public function getFields() |
| 34 | 34 | { |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | } |
| 37 | 37 | |
| 38 | 38 | /** |
| 39 | - * @param Field[]|Query[] $fields |
|
| 39 | + * @param Field[] $fields |
|
| 40 | 40 | */ |
| 41 | 41 | public function setFields($fields) |
| 42 | 42 | { |
@@ -25,6 +25,9 @@ |
||
| 25 | 25 | { |
| 26 | 26 | } |
| 27 | 27 | |
| 28 | + /** |
|
| 29 | + * @param \Youshido\GraphQL\Type\Object\ObjectType $object |
|
| 30 | + */ |
|
| 28 | 31 | public function resolveType($object) |
| 29 | 32 | { |
| 30 | 33 | return $this->getConfig()->resolveType($object); |
@@ -57,7 +57,7 @@ |
||
| 57 | 57 | * @param Field $objField |
| 58 | 58 | * @param AbstractInterfaceType $interface |
| 59 | 59 | * |
| 60 | - * @return bool |
|
| 60 | + * @return boolean|null |
|
| 61 | 61 | * |
| 62 | 62 | * @throws ConfigurationException |
| 63 | 63 | */ |
@@ -87,6 +87,9 @@ |
||
| 87 | 87 | return $this->getConfigValue('interfaces', []); |
| 88 | 88 | } |
| 89 | 89 | |
| 90 | + /** |
|
| 91 | + * @param ObjectType|null $value |
|
| 92 | + */ |
|
| 90 | 93 | public function isValidValue($value) |
| 91 | 94 | { |
| 92 | 95 | return is_array($value) || is_null($value) || is_object($value); |
@@ -9,8 +9,6 @@ |
||
| 9 | 9 | |
| 10 | 10 | |
| 11 | 11 | use Youshido\GraphQL\Config\Field\InputFieldConfig; |
| 12 | -use Youshido\GraphQL\Config\Traits\ResolvableObjectTrait; |
|
| 13 | -use Youshido\GraphQL\Type\InputObject\AbstractInputObjectType; |
|
| 14 | 12 | use Youshido\GraphQL\Type\InputTypeInterface; |
| 15 | 13 | use Youshido\GraphQL\Type\Traits\AutoNameTrait; |
| 16 | 14 | use Youshido\GraphQL\Type\Traits\FieldsArgumentsAwareObjectTrait; |
@@ -14,6 +14,9 @@ |
||
| 14 | 14 | trait ResolvableObjectTrait |
| 15 | 15 | { |
| 16 | 16 | |
| 17 | + /** |
|
| 18 | + * @param string|boolean $value |
|
| 19 | + */ |
|
| 17 | 20 | public function resolve($value, array $args, ResolveInfo $info) |
| 18 | 21 | { |
| 19 | 22 | if ($resolveFunction = $this->getConfig()->getResolveFunction()) { |
@@ -9,7 +9,6 @@ |
||
| 9 | 9 | namespace Youshido\GraphQL\Validator\ConfigValidator\Rules; |
| 10 | 10 | |
| 11 | 11 | |
| 12 | -use Youshido\GraphQL\Field\AbstractInputField; |
|
| 13 | 12 | use Youshido\GraphQL\Field\FieldInterface; |
| 14 | 13 | use Youshido\GraphQL\Field\InputFieldInterface; |
| 15 | 14 | use Youshido\GraphQL\Type\AbstractType; |