ClosureLoader

class ClosureLoader extends Loader ClosureLoader loads routes from a PHP closure. The Closure must return a RouteCollection instance. Methods LoaderResolverInterface getResolver() Gets the loader resolver. from Loader setResolver(LoaderResolverInterface $resolver) Sets the loader resolver. from Loader mixed import(mixed $resource, string|null $type = null) Imports a resource. from Loader LoaderInterface resolve(mixed $resource, string|null $type = null) Finds a loader able to

ClosureLoader

class ClosureLoader extends Loader ClosureLoader loads service definitions from a PHP closure. The Closure has access to the container as its first argument. Methods LoaderResolverInterface getResolver() Gets the loader resolver. from Loader setResolver(LoaderResolverInterface $resolver) Sets the loader resolver. from Loader mixed import(mixed $resource, string|null $type = null) Imports a resource. from Loader LoaderInterface resolve(mixed $resource, string|null $type = null

ClonerInterface

interface ClonerInterface Methods Data cloneVar(mixed $var) Clones a PHP variable. Details Data cloneVar(mixed $var) Clones a PHP variable. Parameters mixed $var Any PHP variable Return Value Data The cloned variable represented by a Data object

ClockMock::withClockMock()

static withClockMock($enable = null) Parameters $enable

ClockMock::usleep()

static usleep($us) Parameters $us

ClockMock::time()

static time()

ClockMock::sleep()

static sleep($s) Parameters $s

ClockMock::register()

static register($class) Parameters $class

ClockMock::microtime()

static microtime($asFloat = false) Parameters $asFloat

ClockMock

class ClockMock Methods static withClockMock($enable = null) static time() static sleep($s) static usleep($us) static microtime($asFloat = false) static register($class) Details static withClockMock($enable = null) Parameters $enable static time() static sleep($s) Parameters $s static usleep($us)