API CHANGE: Renamed ArrayData::getArray() to toMap() to make it consistent with DataObject. This also makes it work with SapphireTest assertation methods.

This commit is contained in:
ajshort 2011-03-27 21:37:06 +11:00 committed by Sam Minnee
parent f5d2e43636
commit 79cde9df25

View File

@ -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();
}
}