/** * Sets the current context, returning the displaced context * @param Context $c * @return Context */ public static function set(Context $c = null) { $old = Context::$instance; Context::$instance = $c; return $old; }