protected function mapResponseToColumns($columns, $type)
    {
        $transformer = new DataArrayTransformer;

        return array_map(function ($row) use ($columns, $type, $transformer) {
            return $transformer->transform($row, $columns, $type);
        }, $this->getAjaxResponseData());
    }
protected function mapResponseToColumns($columns, $type)
    {
        $transformer = new DataArrayTransformer;

        return array_map(function ($row) use ($columns, $type, $transformer) {
            return $transformer->transform($row, $columns, $type);
        }, $this->getAjaxResponseData());
    }
protected function mapResponseToColumns ( $ columns , $ type ) { $ transformer = new DataArrayTransformer ; return array_map ( function ( $ row ) use ( $ columns , $ type , $ transformer ) { return $ transformer -> transform ( $ row , $ columns , $ type ) ; } , $ this -> getAjaxResponseData ( ) ) ; }
Map ajax response to columns definition.

@param mixed $columns
@param string $type
@return array
Map ajax response to columns definition .