public function addPattern($type, $pattern) { $this->map[$type] = $pattern; unset($this->compileCache[$type]); }