PHP Class Youshido\GraphQL\Relay\Fetcher\CallableFetcher

Inheritance: implements Youshido\GraphQL\Relay\Fetcher\FetcherInterface
Show file Open project: youshido/graphql Class Usage Examples

Protected Properties

Property Type Description
$resolveNodeCallable callable
$resolveTypeCallable callable

Public Methods

Method Description
__construct ( callable $resolveNode, callable $resolveType )
resolveNode ( $type, $id )
resolveType ( $object )

Method Details

__construct() public method

public __construct ( callable $resolveNode, callable $resolveType )
$resolveNode callable
$resolveType callable

resolveNode() public method

public resolveNode ( $type, $id )

resolveType() public method

public resolveType ( $object )

Property Details

$resolveNodeCallable protected property

protected callable $resolveNodeCallable
return callable

$resolveTypeCallable protected property

protected callable $resolveTypeCallable
return callable