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.

27 lines
566 B

<?php
namespace Darksparrow\DeegraphInteractions\QueryBuilder\SelectQuery;
class SelectQueryResponseRow
{
public ?array $Properties = null;
public function __construct(array $array)
{
if($array == [])
{
return;
}
foreach($array as $property=>$data)
{
foreach($data as $key => $value) {
$this->Properties[$property][$key] = $value;
}
}
}
public function __toString(): string
{
return json_encode($this, JSON_PRETTY_PRINT);
}
}