public static function proxy($value, $isRecursive = null)
    {
        if ($value instanceof SafeInterface) {
            return $value;
        }
        if (is_object($value)) {
            return static::proxyObject($value, $isRecursive);
        }
        if (is_array($value)) {
            return static::proxyArray($value, $isRecursive);
        }

        return static::proxyPrimitive($value);
    }
public static function proxy($value, $isRecursive = null)
    {
        if ($value instanceof SafeInterface) {
            return $value;
        }
        if (is_object($value)) {
            return static::proxyObject($value, $isRecursive);
        }
        if (is_array($value)) {
            return static::proxyArray($value, $isRecursive);
        }

        return static::proxyPrimitive($value);
    }
public static function proxy ( $ value , $ isRecursive = null ) { if ( $ value instanceof SafeInterface ) { return $ value ; } if ( is_object ( $ value ) ) { return static :: proxyObject ( $ value , $ isRecursive ) ; } if ( is_array ( $ value ) ) { return static :: proxyArray ( $ value , $ isRecursive ) ; } return static :: proxyPrimitive ( $ value ) ; }
Wrap the supplied value in a proxy.

@param mixed        $value       The value to wrap.
@param boolean|null $isRecursive True if the value should be recursively proxied.

@return ProxyInterface The proxied value.
Wrap the supplied value in a proxy .