public static function set(array $set, $path, $value = null) {
        if (is_array($path)) {
            foreach ($path as $key => $value) {
                $set = static::insert($set, $key, $value);
            }
        } else {
            $set = static::insert($set, $path, $value);
        }

        return $set;
    }
public static function set(array $set, $path, $value = null) {
        if (is_array($path)) {
            foreach ($path as $key => $value) {
                $set = static::insert($set, $key, $value);
            }
        } else {
            $set = static::insert($set, $path, $value);
        }

        return $set;
    }
public static function set ( array $ set , $ path , $ value = null ) { if ( is_array ( $ path ) ) { foreach ( $ path as $ key => $ value ) { $ set = static :: insert ( $ set , $ key , $ value ) ; } } else { $ set = static :: insert ( $ set , $ path , $ value ) ; } return $ set ; }
Set a value into the result set. If the paths is an array, loop over each one and insert the value.

@param array $set
@param array|string $path
@param mixed $value
@return array
Set a value into the result set . If the paths is an array loop over each one and insert the value .