Adds defaults.
This method implements a fluent interface.
array $defaults The defaults:
Route The current Route instance
public function addDefaults(array $defaults) {
foreach ($defaults as $name => $default) {
$this->defaults[$name] = $default;
}
$this->compiled = null;
return $this;
}