private function get_named_arguments() : array {
		// name the parameters
		$named_arguments = [];

		if ( array_key_exists( 'expects', $this->routes[ $this->__method_name ] ) ) {
			$expects = $this->routes[ $this->__method_name ]['expects'];

			foreach ( $expects as $index => $parameter_name ) {
				if ( array_key_exists( $index, $this->__arguments ) ) {
					$named_arguments[ $parameter_name ] = $this->__arguments[ $index ];
				}
			}
		}

		return $named_arguments;
	}