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;
	}
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;
	}
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 ; }
Map the arguments passed into the method to the
expected arguments defined by the route

@return array
Map the arguments passed into the method to the expected arguments defined by the route