public function unwrapValue($value)
    {
        if (is_array($value)) {
            $self = $this;
            return array_map(function ($item) use ($self) {
                if ($item instanceof Context) {
                    return $item->unwrap();
                } else {
                    return $self->unwrapValue($item);
                }
            }, $value);
        } else {
            return $value;
        }
    }
public function unwrapValue($value)
    {
        if (is_array($value)) {
            $self = $this;
            return array_map(function ($item) use ($self) {
                if ($item instanceof Context) {
                    return $item->unwrap();
                } else {
                    return $self->unwrapValue($item);
                }
            }, $value);
        } else {
            return $value;
        }
    }
public function unwrapValue ( $ value ) { if ( is_array ( $ value ) ) { $ self = $ this ; return array_map ( function ( $ item ) use ( $ self ) { if ( $ item instanceof Context ) { return $ item -> unwrap ( ) ; } else { return $ self -> unwrapValue ( $ item ) ; } } , $ value ) ; } else { return $ value ; } }
Unwrap a value by unwrapping nested context objects

This method is public for closure access.

@param $value
@return mixed
Unwrap a value by unwrapping nested context objects