for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Digia\GraphQL\Type\Definition;
trait ResolveTypeTrait
{
/**
* @var ?callable
*/
?callable
0
private $resolveTypeFunction;
* @param array ...$args
* @return TypeInterface|null
public function resolveType(...$args): ?TypeInterface
return \call_user_func_array($this->resolveTypeFunction, $args);
}
* @param callable|null $resolveTypeFunction
* @return $this
protected function setResolveType(?callable $resolveTypeFunction)
$this->resolveTypeFunction = $resolveTypeFunction;
return $this;