src/ResourceResolver.php
public function bindFetcher($fetcherKey, $relationshipName, $callback = null)
    {
        if ($callback !== null) {
            $this->fetcherRelationships[$fetcherKey][] = $relationshipName;
        }

        $callback = $callback ?: $relationshipName;

        $this->fetchers[$fetcherKey] = $callback;
    }
public function bindFetcher($fetcherKey, $relationshipName, $callback = null)
    {
        if ($callback !== null) {
            $this->fetcherRelationships[$fetcherKey][] = $relationshipName;
        }

        $callback = $callback ?: $relationshipName;

        $this->fetchers[$fetcherKey] = $callback;
    }
public function bindFetcher ( $ fetcherKey , $ relationshipName , $ callback = null ) { if ( $ callback !== null ) { $ this -> fetcherRelationships [ $ fetcherKey ] [ ] = $ relationshipName ; } $ callback = $ callback ? : $ relationshipName ; $ this -> fetchers [ $ fetcherKey ] = $ callback ; }
Adds the callback to fetch a resolved relationship for a parameter on a resolver.

@param string $fetcherKey
@param string|callable $relationshipName
@param callable|string $callback
@return void
Adds the callback to fetch a resolved relationship for a parameter on a resolver .