public function setAdapter($adapter)
    {
        if (\is_callable($adapter)) {
            $adapter = \call_user_func($adapter, $this->container);
        }

        $this->adapter = $adapter;
    }
public function setAdapter($adapter)
    {
        if (\is_callable($adapter)) {
            $adapter = \call_user_func($adapter, $this->container);
        }

        $this->adapter = $adapter;
    }
public function setAdapter ( $ adapter ) { if ( \ is_callable ( $ adapter ) ) { $ adapter = \ call_user_func ( $ adapter , $ this -> container ) ; } $ this -> adapter = $ adapter ; }
Set the transformation layer at runtime.

@param \Closure|\Dingo\Api\Contract\Transformer\Adapter $adapter

@return void
Set the transformation layer at runtime .