public function offsetGet($offset) { if ('cost' === $offset) { $offset = 'total'; } return parent::offsetGet($offset); }