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

@param string $type
@param string $pattern
Adds a pattern for a type .