summaryrefslogtreecommitdiffstats
path: root/src/datasets/array.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/datasets/array.php')
-rw-r--r--src/datasets/array.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/datasets/array.php b/src/datasets/array.php
index 8eaf921..e28a761 100644
--- a/src/datasets/array.php
+++ b/src/datasets/array.php
@@ -42,6 +42,16 @@ class ezcGraphArrayDataSet extends ezcGraphDataSet
$this->data[$key] = $value;
}
}
+
+ /**
+ * Returns the number of elements in this dataset
+ *
+ * @return int
+ */
+ public function count()
+ {
+ return count( $this->data );
+ }
}
?>
OpenPOWER on IntegriCloud