lib/private/Route/Route.php
/**
	 * Requirements for this route
	 *
	 * @param array $requirements The requirements
	 * @return \OC\Route\Route
	 */
Requirements for this route
@param array $requirements The requirements
@return \OC\Route\Route
Requirements for this route @param array $requirements The requirements @return \ OC \ Route \ Route
public function requirements($requirements) {
		$method = $this->getMethods();
		$this->setRequirements($requirements);
		if (isset($requirements['_method'])) {
			$method = $requirements['_method'];
		}
		if ($method) {
			$this->method($method);
		}
		return $this;
	}
public function requirements ( $ requirements ) { $ method = $ this -> getMethods ( ) ; $ this -> setRequirements ( $ requirements ) ; if ( isset ( $ requirements [ '_method' ] ) ) { $ method = $ requirements [ '_method' ] ; } if ( $ method ) { $ this -> method ( $ method ) ; } return $ this ; }
Requirements for this route
 @param array $requirements The requirements
 @return \OC\Route\Route
Requirements for this route @param array $requirements The requirements @return \ OC \ Route \ Route