* a different Title instance set on it.
* @since 1.19
*/
-class DerivativeContext extends ContextSource {
+class DerivativeContext extends ContextSource implements MutableContext {
/**
* @var WebRequest
*/
*/
private $config;
+ /**
+ * @var Stats
+ */
+ private $stats;
+
+ /**
+ * @var Timing
+ */
+ private $timing;
+
/**
* Constructor
* @param IContextSource $context Context to inherit from
}
}
+ /**
+ * Get the timing object
+ *
+ * @return Timing
+ */
+ public function getTiming() {
+ if ( !is_null( $this->timing ) ) {
+ return $this->timing;
+ } else {
+ return $this->getContext()->getTiming();
+ }
+ }
+
/**
* Set the WebRequest object
*