public function get($key = null, $default = null) { if (is_null($key)) { return $this->items; } return array_key_exists($key, $this->changed) ? $this->changed[$key] : (array_key_exists($key, $this->items) ? $this->items[$key] : $default); }