private function statisticsToArray(StatementStatisticsInterface $statementStatistics = null)
{
if (is_null($statementStatistics)) return [];
$data = [
'contains_updates' => $statementStatistics->containsUpdates(),
'nodes_created' => $statementStatistics->nodesCreated(),
'nodes_deleted' => $statementStatistics->nodesDeleted(),
'relationships_created' => $statementStatistics->relationshipsCreated(),
'relationships_deleted' => $statementStatistics->relationshipsDeleted(),
'properties_set' => $statementStatistics->propertiesSet(),
'labels_added' => $statementStatistics->labelsAdded(),
'labels_removed' => $statementStatistics->labelsRemoved(),
'indexes_added' => $statementStatistics->indexesAdded(),
'indexes_removed' => $statementStatistics->indexesRemoved(),
'constraints_added' => $statementStatistics->constraintsAdded(),
'constraints_removed' => $statementStatistics->constraintsRemoved(),
];
return $data;
}