protected static function toggleSerializeScheme(array $scheme)
    {
        foreach ($scheme as $name => &$options) {
            if (is_array($options)) {
                foreach (ParasiticAgent::methods() as $method) {
                    self::toggleSerializeClosure($options, $method);
                }
            }
        }

        return $scheme;
    }
protected static function toggleSerializeScheme(array $scheme)
    {
        foreach ($scheme as $name => &$options) {
            if (is_array($options)) {
                foreach (ParasiticAgent::methods() as $method) {
                    self::toggleSerializeClosure($options, $method);
                }
            }
        }

        return $scheme;
    }
protected static function toggleSerializeScheme ( array $ scheme ) { foreach ( $ scheme as $ name => & $ options ) { if ( is_array ( $ options ) ) { foreach ( ParasiticAgent :: methods ( ) as $ method ) { self :: toggleSerializeClosure ( $ options , $ method ) ; } } } return $ scheme ; }
Serialize or deserialize the scheme.

@param array $scheme

@return array
Serialize or deserialize the scheme .