public function returnsByReference($method, &$reference, $args = false) { $this->dieOnNoMethod($method, 'set return reference'); $this->actions->register($method, $args, new SimpleByReference($reference)); }