src/Transformer/Factory.php
protected function createBinding($resolver, array $parameters = [], Closure $callback = null)
    {
        return new Binding($this->container, $resolver, $parameters, $callback);
    }
protected function createBinding($resolver, array $parameters = [], Closure $callback = null)
    {
        return new Binding($this->container, $resolver, $parameters, $callback);
    }
protected function createBinding ( $ resolver , array $ parameters = [ ] , Closure $ callback = null ) { return new Binding ( $ this -> container , $ resolver , $ parameters , $ callback ) ; }
Create a new binding instance.

@param string|callable|object $resolver
@param array                  $parameters
@param \Closure               $callback

@return \Dingo\Api\Transformer\Binding
Create a new binding instance .