mirror of
https://github.com/retailcrm/graphql-php.git
synced 2025-03-12 07:46:06 +03:00
Minor comments improvement
This commit is contained in:
parent
61245213c4
commit
1672bd33e3
@ -17,7 +17,7 @@ interface LeafType
|
|||||||
public function serialize($value);
|
public function serialize($value);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Parses an externally provided value to use as an input
|
* Parses an externally provided value (query variable) to use as an input
|
||||||
*
|
*
|
||||||
* @param mixed $value
|
* @param mixed $value
|
||||||
* @return mixed
|
* @return mixed
|
||||||
@ -25,9 +25,9 @@ interface LeafType
|
|||||||
public function parseValue($value);
|
public function parseValue($value);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Parses an externally provided literal value to use as an input
|
* Parses an externally provided literal value (hardcoded in GraphQL query) to use as an input
|
||||||
*
|
*
|
||||||
* @param \GraphQL\Language\AST\Value $valueAST
|
* @param \GraphQL\Language\AST\Node $valueAST
|
||||||
* @return mixed
|
* @return mixed
|
||||||
*/
|
*/
|
||||||
public function parseLiteral($valueAST);
|
public function parseLiteral($valueAST);
|
||||||
|
@ -99,7 +99,7 @@ class ObjectType extends Type implements OutputType, CompositeType
|
|||||||
Config::MAYBE_THUNK
|
Config::MAYBE_THUNK
|
||||||
),
|
),
|
||||||
'isTypeOf' => Config::CALLBACK, // ($value, $context, ResolveInfo $info) => boolean
|
'isTypeOf' => Config::CALLBACK, // ($value, $context, ResolveInfo $info) => boolean
|
||||||
'resolveField' => Config::CALLBACK
|
'resolveField' => Config::CALLBACK // ($value, $args, $context, ResolveInfo $info) => $fieldValue
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$this->name = $config['name'];
|
$this->name = $config['name'];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user