Minor comments improvement

This commit is contained in:
vladar 2016-11-02 05:08:17 +07:00
parent 61245213c4
commit 1672bd33e3
2 changed files with 4 additions and 4 deletions

View File

@ -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);

View File

@ -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'];