public function __construct(array $map = array()) { foreach ($map as $type => $pattern) { $this->addPattern($type, $pattern); } }