diff --git a/queryBuilder/QueryProcessor.php b/queryBuilder/QueryProcessor.php index 565bb73..af84814 100644 --- a/queryBuilder/QueryProcessor.php +++ b/queryBuilder/QueryProcessor.php @@ -100,6 +100,10 @@ private static function select($sql) { $result->data = $data; $result->json = json_encode($data); $result->object = (object) $data; + $result->first = (object) $data[0]; + $result->last = (object) $data[count($data) - 1]; + $result->count = count($data); + return $result; } } \ No newline at end of file