public function values(?string $key = null) : array
    {
        $value = $this->get($key);

        if (!is_array($value)) {
            throw new InvalidArgumentException(
                'method values() should be called on array'
            );
        }

        return array_values($value);
    }
public function values(?string $key = null) : array
    {
        $value = $this->get($key);

        if (!is_array($value)) {
            throw new InvalidArgumentException(
                'method values() should be called on array'
            );
        }

        return array_values($value);
    }
public function values ( ? string $ key = null ) : array { $ value = $ this -> get ( $ key ) ; if ( ! is_array ( $ value ) ) { throw new InvalidArgumentException ( 'method values() should be called on array' ) ; } return array_values ( $ value ) ; }
Gets response values.

@param string|null $key

@return array
Gets response values .