public function returnsByValue($method, $value, $args = false) { $this->dieOnNoMethod($method, 'set return value'); $this->actions->register($method, $args, new SimpleByValue($value)); }