You are here

static function xautoload_Util::identityCallback in X Autoload 7.3

Parameters

mixed $arg: A value to be returned by the callback.

Return value

callback A callback with no arguments, that will always return the value specified in $arg.

File

lib/Util.php, line 57

Class

xautoload_Util
A number of static methods that don't interact with any global state.

Code

static function identityCallback($arg) {
  return array(
    new xautoload_Container_Identity($arg),
    'get',
  );
}