Sets the requirements.
This method implements a fluent interface.
array $requirements The requirements:
Route The current Route instance
public function setRequirements(array $requirements) {
$this->requirements = array();
return $this
->addRequirements($requirements);
}