src/JsonApiParser.php
public function resolver($resourceNames, $callback)
    {
        $resourceNames = Arr::wrap($resourceNames);

        foreach ($resourceNames as $name) {
            $this->resolver->bind($name, $callback);
        }

        return $this;
    }
public function resolver($resourceNames, $callback)
    {
        $resourceNames = Arr::wrap($resourceNames);

        foreach ($resourceNames as $name) {
            $this->resolver->bind($name, $callback);
        }

        return $this;
    }
public function resolver ( $ resourceNames , $ callback ) { $ resourceNames = Arr :: wrap ( $ resourceNames ) ; foreach ( $ resourceNames as $ name ) { $ this -> resolver -> bind ( $ name , $ callback ) ; } return $ this ; }
Adds the callbacks for resolve the different objects in the response

@param array|string $resourceNames
@param callable|string $callback
@return JsonApiParser
Adds the callbacks for resolve the different objects in the response