/** * @param $x null|OutputPage * @return OutputPage */ public function output(OutputPage $x = null) { $old = $this->context->getOutput(); $this->context->setOutput($x); return $old; }