public function get($key, $default = null, $filter = null)
{
$result = $default;
if ($this->has($key)) {
$result = $this->offsetGet($key);
}
return $this->_filter($result, $filter);
}
/** * {@inheritdoc} */ protected function _compactResponse($apiResponse) { $dataResponse = new Data($apiResponse); $response = array('code' => $dataResponse->find('response.code', 0, 'int'), 'headers' => array_change_key_case((array) $dataResponse->get('headers', array()), CASE_LOWER), 'body' => $dataResponse->get('body')); $response = new Data($response); return $response; }