GraphAware\Neo4j\Client\HttpDriver\Result\StatementStatistics::__construct PHP Method

__construct() public method

public __construct ( array $statistics = [] )
$statistics array
    public function __construct(array $statistics = array())
    {
        $keys = ['contains_updates', 'nodes_created', 'nodes_deleted', 'properties_set', 'labels_added', 'labels_removed', 'indexes_added', 'indexes_removed', 'constraints_added', 'constraints_removed', 'relationship_deleted', 'relationships_created'];
        foreach ($statistics as $key => $value) {
            if (!in_array($key, $keys)) {
                throw new \InvalidArgumentException(sprintf('Key %s is invalid in statement statistics', $key));
            }
            $k = $this->toCamelCase($key);
            $this->{$k} = $value;
        }
    }