public function getResponseMap()
    {
        $mappedFields = [];
        foreach (['headers', 'body'] as $type) {
            if (isset($this->responseExpected->{$type}) && isset($this->responseActual[$type])) {
                foreach ($this->responseExpected->{$type} as $value) {
                    if (!empty($value->destination) && !empty($value->key) && !empty($this->responseActual[$type][$value->key])) {
                        // We have a non-empty value with a mapped destination.
                        $mappedFields[$value->destination] = $this->responseActual[$type][$value->key];
                    }
                }
            }
        }

        return $mappedFields;
    }
public function getResponseMap()
    {
        $mappedFields = [];
        foreach (['headers', 'body'] as $type) {
            if (isset($this->responseExpected->{$type}) && isset($this->responseActual[$type])) {
                foreach ($this->responseExpected->{$type} as $value) {
                    if (!empty($value->destination) && !empty($value->key) && !empty($this->responseActual[$type][$value->key])) {
                        // We have a non-empty value with a mapped destination.
                        $mappedFields[$value->destination] = $this->responseActual[$type][$value->key];
                    }
                }
            }
        }

        return $mappedFields;
    }
public function getResponseMap ( ) { $ mappedFields = [ ] ; foreach ( [ 'headers' , 'body' ] as $ type ) { if ( isset ( $ this -> responseExpected -> { $ type } ) && isset ( $ this -> responseActual [ $ type ] ) ) { foreach ( $ this -> responseExpected -> { $ type } as $ value ) { if ( ! empty ( $ value -> destination ) && ! empty ( $ value -> key ) && ! empty ( $ this -> responseActual [ $ type ] [ $ value -> key ] ) ) { // We have a non-empty value with a mapped destination. $ mappedFields [ $ value -> destination ] = $ this -> responseActual [ $ type ] [ $ value -> key ] ; } } } } return $ mappedFields ; }
Get filled responses that have Contact destinations defined.

@return array
Get filled responses that have Contact destinations defined .