createResponse() публичный Метод

Is responsible to take the generated data and prepare a response for it.
public createResponse ( ResponseData $data, OpenSkill\Datatable\Queries\QueryConfiguration $queryConfiguration, array $columnConfigurations ) : Symfony\Component\HttpFoundation\JsonResponse
$data OpenSkill\Datatable\Data\ResponseData The processed data.
$queryConfiguration OpenSkill\Datatable\Queries\QueryConfiguration the query configuration for the current request.
$columnConfigurations array the column configurations for the current data table.
Результат Symfony\Component\HttpFoundation\JsonResponse the response that should be returned to the client.
 public function testParse()
 {
     $cc = $this->version->parseRequest([]);
     $this->assertNotNull($cc);
     $rsp = $this->version->createResponse(new ResponseData(new Collection([]), 123), $cc, []);
     $this->assertNotNull($rsp);
 }
 public function testParse()
 {
     $column = ColumnConfigurationBuilder::create()->name("id")->build();
     $column1 = ColumnConfigurationBuilder::create()->name("name")->build();
     $cc = $this->version->parseRequest([$column, $column1]);
     $this->assertNotNull($cc);
     $rsp = $this->version->createResponse(new ResponseData(new Collection([]), 123), $cc, []);
     $this->assertNotNull($rsp);
 }