protected function getClosure($returnValue) { return function () use($returnValue) { return $returnValue; }; }