You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
453 B

<?php
namespace Darksparrow\DeegraphPHP\DataStructures;
class QueryResponseWrapper
{
public array $Rows;
public string $RowFormat;
public static function FromAPIResponse(string $response): QueryResponseWrapper
{
$temp = json_decode($response, true);
$builder = new QueryResponseWrapper();
$builder->Rows = $temp["@rows"];
$builder->RowFormat = $temp["@row_format"];
return $builder;
}
}