public function offsetGet($offset) { $loffset = strtolower($offset); if (!isset($this->storage[$loffset])) { $n = new TagMapItem($offset); if (!TagInfo::basic_check($loffset)) { return $n; } $this->storage[$loffset] = $n; $this->sorted = false; } return $this->storage[$loffset]; }