From 79cde9df25f820de6e59c4e93990cc4f596caf6e Mon Sep 17 00:00:00 2001 From: ajshort Date: Sun, 27 Mar 2011 21:37:06 +1100 Subject: [PATCH] API CHANGE: Renamed ArrayData::getArray() to toMap() to make it consistent with DataObject. This also makes it work with SapphireTest assertation methods. --- view/ArrayData.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/view/ArrayData.php b/view/ArrayData.php index bb32c5dc5..fa4916740 100755 --- a/view/ArrayData.php +++ b/view/ArrayData.php @@ -43,7 +43,7 @@ class ArrayData extends ViewableData { * * @return array */ - public function getArray() { + public function toMap() { return $this->array; } @@ -107,4 +107,12 @@ class ArrayData extends ViewableData { function forTemplate() { return var_export($this->array, true); } + + /** + * @deprecated 3.0 Use {@link ArrayData::toMap()}. + */ + public function getArray() { + return $this->toMap(); + } + } \ No newline at end of file