Returns the requirement for the given key.
string $key The key:
string|null The regex or null when not given
public function getRequirement($key) { return isset($this->requirements[$key]) ? $this->requirements[$key] : null; }