private static function toTable(ResultCollection $resultCollection): array
    {
        return array_map(function (ResultInterface $result): array {
            return self::toRow($result);
        }, $resultCollection->all());
    }