src/Http/Router.php
protected function set_options( Endpoint $endpoint, array $options ) {
		if ( isset( $options['guard'] ) ) {
			$endpoint->set_guard( $options['guard'] );
		}

		if ( isset( $options['filter'] ) ) {
			$endpoint->set_filter( $options['filter'] );
		}

		if ( isset( $options['prefix'] ) ) {
			$endpoint->set_prefix( $options['prefix'] );
		}

		return $endpoint;
	}
protected function set_options( Endpoint $endpoint, array $options ) {
		if ( isset( $options['guard'] ) ) {
			$endpoint->set_guard( $options['guard'] );
		}

		if ( isset( $options['filter'] ) ) {
			$endpoint->set_filter( $options['filter'] );
		}

		if ( isset( $options['prefix'] ) ) {
			$endpoint->set_prefix( $options['prefix'] );
		}

		return $endpoint;
	}
protected function set_options ( Endpoint $ endpoint , array $ options ) { if ( isset ( $ options [ 'guard' ] ) ) { $ endpoint -> set_guard ( $ options [ 'guard' ] ) ; } if ( isset ( $ options [ 'filter' ] ) ) { $ endpoint -> set_filter ( $ options [ 'filter' ] ) ; } if ( isset ( $ options [ 'prefix' ] ) ) { $ endpoint -> set_prefix ( $ options [ 'prefix' ] ) ; } return $ endpoint ; }
Sets the passed options on the endpoint.

Only sets endpoints matching setters in the Endpoint class.

@param Endpoint $endpoint
@param array    $options

@return Endpoint
@throws MalformedRouteException
Sets the passed options on the endpoint .