/** * Infrastructure. Allows indexer to return a DynamicResponseModel. */ public function offsetGet($offset) { $result = parent::offsetGet($offset); if ($result != NULL && is_array($result)) { $result = new DynamicResponseModel($result); } return $result; }